diff --git a/lib/ansible/modules/net_tools/ldap/ldap_passwd.py b/lib/ansible/modules/net_tools/ldap/ldap_passwd.py index 4827cd0cdae..eee977d4503 100644 --- a/lib/ansible/modules/net_tools/ldap/ldap_passwd.py +++ b/lib/ansible/modules/net_tools/ldap/ldap_passwd.py @@ -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)