self dot
This commit is contained in:
parent
9df7d53dce
commit
576e70521b
|
@ -61,9 +61,9 @@ class LDAPUserManager(FilebasedUserManager,
|
||||||
#connection.bind_s(dn, password)
|
#connection.bind_s(dn, password)
|
||||||
#connection.unbind_s()
|
#connection.unbind_s()
|
||||||
|
|
||||||
data = check_auth(self, username, password)
|
data = self.check_auth(self, username, password)
|
||||||
|
|
||||||
for group in ldapify_groups(LDAP_GROUPS):
|
for group in self.ldapify_groups(self,LDAP_GROUPS):
|
||||||
if group in data.get('memberOf', []):
|
if group in data.get('memberOf', []):
|
||||||
user = FilebasedUserManager.findUser(self, username)
|
user = FilebasedUserManager.findUser(self, username)
|
||||||
if not user:
|
if not user:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user