diff --git a/octoprint_auth_ldap/__init__.py b/octoprint_auth_ldap/__init__.py index 16a730f..03fddfe 100644 --- a/octoprint_auth_ldap/__init__.py +++ b/octoprint_auth_ldap/__init__.py @@ -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: