mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-996: Use "(objectClass=*)" as default group filter.
This commit is contained in:
@@ -25,7 +25,6 @@ import java.util.List;
|
||||
import org.apache.directory.api.ldap.model.filter.ExprNode;
|
||||
import org.apache.directory.api.ldap.model.filter.PresenceNode;
|
||||
import org.apache.directory.api.ldap.model.message.AliasDerefMode;
|
||||
import org.apache.directory.api.ldap.model.filter.EqualityNode;
|
||||
import org.apache.directory.api.ldap.model.name.Dn;
|
||||
import org.apache.guacamole.GuacamoleException;
|
||||
import org.apache.guacamole.environment.Environment;
|
||||
@@ -325,12 +324,12 @@ public class ConfigurationService {
|
||||
/**
|
||||
* Returns the search filter that should be used when querying the
|
||||
* LDAP server for Guacamole groups. If no filter is specified,
|
||||
* a default of "(objectClass=group)" is returned.
|
||||
* a default of "(objectClass=*)" is used.
|
||||
*
|
||||
* @return
|
||||
* The search filter that should be used when querying the
|
||||
* LDAP server for groups that are valid in Guacamole, or
|
||||
* "(objectClass=group)" if not specified.
|
||||
* "(objectClass=*)" if not specified.
|
||||
*
|
||||
* @throws GuacamoleException
|
||||
* If guacamole.properties cannot be parsed.
|
||||
@@ -338,7 +337,7 @@ public class ConfigurationService {
|
||||
public ExprNode getGroupSearchFilter() throws GuacamoleException {
|
||||
return environment.getProperty(
|
||||
LDAPGuacamoleProperties.LDAP_GROUP_SEARCH_FILTER,
|
||||
new EqualityNode("objectClass","group")
|
||||
new PresenceNode("objectClass")
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user