Source

iredadmin-ose / libs / ldaplib / user.py

Diff from to

File libs/ldaplib/user.py

                                          )
         if result[0] is True:
             if 'storePasswordInPlainText' in data and settings.STORE_PASSWORD_IN_PLAIN_TEXT:
-                self.passwd = ldaputils.generateLDAPPasswd(result[1], pwscheme='PLAIN')
+                self.passwd = ldaputils.generate_ldap_password(result[1], pwscheme='PLAIN')
             else:
-                self.passwd = ldaputils.generateLDAPPasswd(result[1])
+                self.passwd = ldaputils.generate_ldap_password(result[1])
         else:
             return result
 
             )
             if result[0] is True:
                 if 'storePasswordInPlainText' in data and settings.STORE_PASSWORD_IN_PLAIN_TEXT:
-                    self.passwd = ldaputils.generateLDAPPasswd(result[1], pwscheme='PLAIN')
+                    self.passwd = ldaputils.generate_ldap_password(result[1], pwscheme='PLAIN')
                 else:
-                    self.passwd = ldaputils.generateLDAPPasswd(result[1])
+                    self.passwd = ldaputils.generate_ldap_password(result[1])
                 mod_attrs += [(ldap.MOD_REPLACE, 'userPassword', self.passwd)]
                 mod_attrs += [(ldap.MOD_REPLACE, 'shadowLastChange', str(ldaputils.getDaysOfShadowLastChange()))]
             else: