This commit is contained in:
cazagen 2019-11-11 23:08:27 +00:00
parent 52cb559197
commit d483b8bddb

View File

@ -99,7 +99,10 @@ class LDAPUserManager(FilebasedUserManager,
group_filter = "(cn=octoprint,ou=Groups,ou=People,dc=edinburghhacklab,dc=com)"
query = "(&(objectClass=groupOfNames)%s(uid=%s))" % (group_filter, userid)
#query = "(&(objectClass=groupOfNames)%s(uid=%s))" % (group_filter, userid)
query = '(&(objectClass=groupOfNames)(cn=octoprint)(member="uid=%s,ou=Accounts,ou=People,dc=edinburghhacklab,dc=com"))' % userid
self._logger.error("LDAP-AUTH QUERY:" + query)
group_result = connection.search_s(ldap_search_base, ldap.SCOPE_SUBTREE, query)