[Plugin] Fixed auth_ldap usage of User

This commit is contained in:
Ferdinand Thiessen 2020-10-27 13:36:23 +01:00
parent f238491206
commit e14553651f
1 changed files with 1 additions and 1 deletions

View File

@ -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: