mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-234: Change EqualityNode to PresenceNode for wildcard objectClass.
This commit is contained in:
committed by
Virtually Nick
parent
72dad76d42
commit
d7d622051f
@@ -22,8 +22,8 @@ package org.apache.guacamole.auth.ldap.conf;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.directory.api.ldap.model.filter.EqualityNode;
|
|
||||||
import org.apache.directory.api.ldap.model.filter.ExprNode;
|
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.message.AliasDerefMode;
|
||||||
import org.apache.directory.api.ldap.model.name.Dn;
|
import org.apache.directory.api.ldap.model.name.Dn;
|
||||||
import org.apache.guacamole.GuacamoleException;
|
import org.apache.guacamole.GuacamoleException;
|
||||||
@@ -317,7 +317,7 @@ public class ConfigurationService {
|
|||||||
public ExprNode getUserSearchFilter() throws GuacamoleException {
|
public ExprNode getUserSearchFilter() throws GuacamoleException {
|
||||||
return environment.getProperty(
|
return environment.getProperty(
|
||||||
LDAPGuacamoleProperties.LDAP_USER_SEARCH_FILTER,
|
LDAPGuacamoleProperties.LDAP_USER_SEARCH_FILTER,
|
||||||
new EqualityNode("objectClass","user")
|
new PresenceNode("objectClass")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,6 +31,7 @@ import org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueEx
|
|||||||
import org.apache.directory.api.ldap.model.filter.EqualityNode;
|
import org.apache.directory.api.ldap.model.filter.EqualityNode;
|
||||||
import org.apache.directory.api.ldap.model.filter.ExprNode;
|
import org.apache.directory.api.ldap.model.filter.ExprNode;
|
||||||
import org.apache.directory.api.ldap.model.filter.NotNode;
|
import org.apache.directory.api.ldap.model.filter.NotNode;
|
||||||
|
import org.apache.directory.api.ldap.model.filter.PresenceNode;
|
||||||
import org.apache.directory.api.ldap.model.name.Dn;
|
import org.apache.directory.api.ldap.model.name.Dn;
|
||||||
import org.apache.directory.ldap.client.api.LdapNetworkConnection;
|
import org.apache.directory.ldap.client.api.LdapNetworkConnection;
|
||||||
import org.apache.guacamole.auth.ldap.conf.ConfigurationService;
|
import org.apache.guacamole.auth.ldap.conf.ConfigurationService;
|
||||||
@@ -87,7 +88,7 @@ public class UserGroupService {
|
|||||||
|
|
||||||
// Read any object as a group if LDAP is not being used for connection
|
// Read any object as a group if LDAP is not being used for connection
|
||||||
// storage (guacConfigGroup)
|
// storage (guacConfigGroup)
|
||||||
return new EqualityNode("objectClass","group");
|
return new PresenceNode("objectClass");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user