ldap_passwd.passwd_set: Use the synchronous API

pull/4420/head
The Fox in the Shell 2018-08-20 19:01:31 +02:00 committed by ansibot
parent 4558c9102a
commit dcc4a38f98
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class LdapPasswd(LdapGeneric):
# Change the password (or throw an exception)
try:
self.connection.passwd(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)