From 6ab399d664dacf3624622940258f2be06dee40f0 Mon Sep 17 00:00:00 2001 From: Cameron Sharp Date: Tue, 12 Nov 2019 00:07:32 +0000 Subject: [PATCH] HOLY SHIRT IT ACTUALLY FORKING WORKS --- octoprint_auth_ldap/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/octoprint_auth_ldap/__init__.py b/octoprint_auth_ldap/__init__.py index 8483379..a626d17 100644 --- a/octoprint_auth_ldap/__init__.py +++ b/octoprint_auth_ldap/__init__.py @@ -34,7 +34,6 @@ class LDAPUserManager(FilebasedUserManager, def check_auth(self, username, password): - self._logger.error("CAMERON 2") if username in [None, ''] or password in [None, '']: return None ldap_conn = ldap3.Connection(LDAP_SERVER, auto_bind=ldap3.AUTO_BIND_TLS_BEFORE_BIND) @@ -64,8 +63,6 @@ class LDAPUserManager(FilebasedUserManager, #connection.unbind_s() data = self.check_auth(username, password) - self._logger.error("wassup") - self._logger.error(str(data)) for group in self.ldapify_groups(LDAP_GROUPS): if group in data.get('memberOf', []): @@ -73,7 +70,6 @@ class LDAPUserManager(FilebasedUserManager, if not user: self._logger.debug("Add new user") self.addUser(username, str(uuid.uuid4()), True) - self._logger.error("LDAP-CAMERON: HELLO BEN") return True else: self._logger.error("LDAP-CAMERON: user or password incorrect.") @@ -96,7 +92,6 @@ 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: