From e14553651f9439355babc99b8b3b6757997283ce Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 27 Oct 2020 13:36:23 +0100 Subject: [PATCH] [Plugin] Fixed auth_ldap usage of User --- flaschengeist/modules/auth_ldap/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/modules/auth_ldap/__init__.py b/flaschengeist/modules/auth_ldap/__init__.py index ef48869..1ed906b 100644 --- a/flaschengeist/modules/auth_ldap/__init__.py +++ b/flaschengeist/modules/auth_ldap/__init__.py @@ -85,7 +85,7 @@ class AuthLDAP(AuthPlugin): def modify_user(self, user: User, password, new_password=None): try: - dn = user.attributes["DN"].value + dn = user.get_attribute("DN") if password: ldap_conn = self.ldap.connect(dn, password) else: