From cd4619d41794c5f6799aa71d74f19778446828f6 Mon Sep 17 00:00:00 2001 From: Cameron Sharp Date: Mon, 11 Nov 2019 23:46:06 +0000 Subject: [PATCH] ugh --- octoprint_auth_ldap/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: