ldap_passwd: Fix #44329

This is a backport of the fix provided by drewburr in #44336.
The ldap_passwd module is entirely unuseable without it.
pull/44522/head
The Fox in the Shell 6 years ago committed by Matt Clay
parent 408ad387d2
commit 80fc2163e8

@ -117,7 +117,7 @@ class LdapPasswd(LdapGeneric):
# Change the password (or throw an exception)
try:
self.connection.passwd_set(self.dn, None, self.passwd)
self.connection.passwd_s(self.dn, None, self.passwd)
except ldap.LDAPError as e:
self.fail("Unable to set password", e)

Loading…
Cancel
Save