GUACAMOLE-957: Match any user for LDAP YAML by default.

This commit is contained in:
Michael Jumper committed 2021-10-23 20:19:51 -07:00
1 parent 5a757d0418
commit a216ec902a
1 file changed
+4
@@ -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())