This one added 3 spaces to the end of any new passwords
objectClass: top
objectClass: foreignSecurityPrincipal
description: %s
objectClass: top
objectClass: foreignSecurityPrincipal
description: %s
- """ % (sid, domaindn, desc)
+""" % (sid, domaindn, desc)
# deliberately ignore errors from this, as the records may
# already exist
for msg in self.parse_ldif(add):
# deliberately ignore errors from this, as the records may
# already exist
for msg in self.parse_ldif(add):
changetype: modify
replace: userPassword
userPassword: %s
changetype: modify
replace: userPassword
userPassword: %s
- """ % (user_dn, password)
+""" % (user_dn, password)
userAccountControl: %u
replace: accountExpires
accountExpires: %u
userAccountControl: %u
replace: accountExpires
accountExpires: %u
- """ % (res[0].dn, userAccountControl, accountExpires)
+""" % (res[0].dn, userAccountControl, accountExpires)
# now change the database
self.modify_ldif(mod)
except:
# now change the database
self.modify_ldif(mod)
except: