fix query

This commit is contained in:
cazagen 2019-11-11 22:56:12 +00:00
parent da786faa37
commit 52cb559197

View File

@ -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)