mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
fixed more embedded spaces in LDIF
This one added 3 spaces to the end of any new passwords
This commit is contained in:
parent
917905aea0
commit
0770028cbe
@ -59,7 +59,7 @@ dn: CN=%s,CN=ForeignSecurityPrincipals,%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):
|
||||
@ -179,7 +179,7 @@ dn: %s
|
||||
changetype: modify
|
||||
replace: userPassword
|
||||
userPassword: %s
|
||||
""" % (user_dn, password)
|
||||
""" % (user_dn, password)
|
||||
|
||||
self.modify_ldif(setpw)
|
||||
|
||||
@ -235,7 +235,7 @@ replace: userAccountControl
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user