ugh
This commit is contained in:
parent
576e70521b
commit
cd4619d417
|
@ -62,7 +62,7 @@ class LDAPUserManager(FilebasedUserManager,
|
|||
#connection.unbind_s()
|
||||
|
||||
data = self.check_auth(self, username, password)
|
||||
|
||||
|
||||
for group in self.ldapify_groups(self,LDAP_GROUPS):
|
||||
if group in data.get('memberOf', []):
|
||||
user = FilebasedUserManager.findUser(self, username)
|
||||
|
@ -71,7 +71,7 @@ class LDAPUserManager(FilebasedUserManager,
|
|||
self.addUser(username, str(uuid.uuid4()), True)
|
||||
return True
|
||||
else:
|
||||
self._logger.error("LDAP-CAMERON: user or password incorrect."")
|
||||
self._logger.error("LDAP-CAMERON: user or password incorrect.")
|
||||
return False
|
||||
|
||||
except ldap.INVALID_CREDENTIALS:
|
||||
|
|
Loading…
Reference in New Issue
Block a user