mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 16:21:12 +00:00
ldap_passwd.passwd_set: Use the synchronous API
This commit is contained in:
committed by
ansibot
parent
4558c9102a
commit
dcc4a38f98
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user