diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-03-12 15:13:23 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-03-12 15:13:23 +1100 |
commit | 0770028cbea5f13c0dda2b9a89803359bed66306 (patch) | |
tree | 641ec21287ce587ec0d91eeb2b7a3258a3eff07a /source4/scripting | |
parent | 917905aea0cfeff53009839f70cdc9eefdcfa2c9 (diff) | |
download | samba-0770028cbea5f13c0dda2b9a89803359bed66306.tar.gz samba-0770028cbea5f13c0dda2b9a89803359bed66306.tar.bz2 samba-0770028cbea5f13c0dda2b9a89803359bed66306.zip |
fixed more embedded spaces in LDIF
This one added 3 spaces to the end of any new passwords
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 740806f266..1c5a8dfcde 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -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: |