[Plugin] Fixed auth_ldap usage of User
This commit is contained in:
parent
f238491206
commit
e14553651f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue