mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-957: Match any user for LDAP YAML by default.
This commit is contained in:
@@ -276,6 +276,10 @@ public class JacksonLDAPConfiguration implements LDAPConfiguration {
|
||||
@Override
|
||||
public String appliesTo(String username) throws GuacamoleException {
|
||||
|
||||
// Match any user by default
|
||||
if (matchUsernames == null || matchUsernames.isEmpty())
|
||||
return username;
|
||||
|
||||
for (Pattern pattern : matchUsernames) {
|
||||
Matcher matcher = pattern.matcher(username);
|
||||
if (matcher.matches())
|
||||
|
Reference in New Issue
Block a user