fix query
This commit is contained in:
parent
da786faa37
commit
52cb559197
|
@ -99,7 +99,7 @@ class LDAPUserManager(FilebasedUserManager,
|
|||
|
||||
group_filter = "(cn=octoprint,ou=Groups,ou=People,dc=edinburghhacklab,dc=com)"
|
||||
|
||||
query = "(&(objectClass=posixGroup)%s(memberUid=%s))" % (group_filter, userid)
|
||||
query = "(&(objectClass=groupOfNames)%s(uid=%s))" % (group_filter, userid)
|
||||
self._logger.error("LDAP-AUTH QUERY:" + query)
|
||||
group_result = connection.search_s(ldap_search_base, ldap.SCOPE_SUBTREE, query)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user