diff --git a/octoprint_auth_ldap/__init__.py b/octoprint_auth_ldap/__init__.py index 56b2683..92f2fe8 100644 --- a/octoprint_auth_ldap/__init__.py +++ b/octoprint_auth_ldap/__init__.py @@ -67,7 +67,7 @@ class LDAPUserManager(FilebasedUserManager, self._logger.error("wassup") self._logger.error(str(data)) - for group in self.ldapify_groups(self,LDAP_GROUPS): + for group in self.ldapifyf_groups(self,LDAP_GROUPS): if group in data.get('memberOf', []): user = FilebasedUserManager.findUser(self, username) if not user: @@ -96,11 +96,11 @@ class LDAPUserManager(FilebasedUserManager, return FilebasedUserManager.changeUserPassword(self, username, password) def findUser(self, userid=None, apikey=None, session=None): + self._logger.error("CAMERON 1") local_user = FilebasedUserManager.findUser(self, userid, apikey, session) #If user not exists in local database, search it on LDAP if userid and not local_user: #Return a fake user instance - self._logger.error("CAMERON 1") return User(userid, str(uuid.uuid4()), True, ["user"]) else :