[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):
|
def modify_user(self, user: User, password, new_password=None):
|
||||||
try:
|
try:
|
||||||
dn = user.attributes["DN"].value
|
dn = user.get_attribute("DN")
|
||||||
if password:
|
if password:
|
||||||
ldap_conn = self.ldap.connect(dn, password)
|
ldap_conn = self.ldap.connect(dn, password)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue