new idea
This commit is contained in:
parent
52cb559197
commit
d483b8bddb
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user