fixed more embedded spaces in LDIF
authorAndrew Tridgell <tridge@samba.org>
Thu, 12 Mar 2009 04:13:23 +0000 (15:13 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 12 Mar 2009 04:13:23 +0000 (15:13 +1100)
This one added 3 spaces to the end of any new passwords

source4/scripting/python/samba/samdb.py

index 740806f2667a21c8e16abbc82b42522aa1728731..1c5a8dfcde7592d12db77da8b7698d2721bc5de6 100644 (file)
@@ -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: