This commit is contained in:
cazagen 2019-11-11 23:46:06 +00:00
parent 576e70521b
commit cd4619d417

View File

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