GUACAMOLE-234: Adjust LDAP filters.

This commit is contained in:
Nick Couchman authored and Virtually Nick committed 2019-08-10 13:57:51 -04:00
1 parent 7825f57b99
commit 72dad76d42
2 files changed
+4 -4

No files matched your search

@@ -304,12 +304,12 @@ public class ConfigurationService {
/**
* Returns the search filter that should be used when querying the
* LDAP server for Guacamole users. If no filter is specified,
* a default of "(objectClass=*)" is returned.
* a default of "(objectClass=user)" is returned.
*
* @return
* The search filter that should be used when querying the
* LDAP server for users that are valid in Guacamole, or
* "(objectClass=*)" if not specified.
* "(objectClass=user)" if not specified.
*
* @throws GuacamoleException
* If guacamole.properties cannot be parsed.
@@ -317,7 +317,7 @@ public class ConfigurationService {
public ExprNode getUserSearchFilter() throws GuacamoleException {
return environment.getProperty(
LDAPGuacamoleProperties.LDAP_USER_SEARCH_FILTER,
new EqualityNode("objectClass","*")
new EqualityNode("objectClass","user")
);
}
@@ -87,7 +87,7 @@ public class UserGroupService {
// Read any object as a group if LDAP is not being used for connection
// storage (guacConfigGroup)
return new EqualityNode("objectClass","*");
return new EqualityNode("objectClass","group");
}