From 4558c9102af28393720e7a85a6fb7d33acf04cff Mon Sep 17 00:00:00 2001 From: Brown Date: Fri, 17 Aug 2018 16:23:05 -0500 Subject: [PATCH] Fix passwd function call --- lib/ansible/modules/net_tools/ldap/ldap_passwd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/net_tools/ldap/ldap_passwd.py b/lib/ansible/modules/net_tools/ldap/ldap_passwd.py index c5c91a3e800..9da77d0675b 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(self.dn, None, self.passwd) except ldap.LDAPError as e: self.fail("Unable to set password", e)