mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-234: Adjust LDAP filters.
This commit is contained in:
committed by
Virtually Nick
parent
7825f57b99
commit
72dad76d42
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user