summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/mymachinepw4
-rwxr-xr-xsource4/scripting/bin/renamedc4
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/bin/mymachinepw b/source4/scripting/bin/mymachinepw
index 3a843b5947..dc85ad1df4 100755
--- a/source4/scripting/bin/mymachinepw
+++ b/source4/scripting/bin/mymachinepw
@@ -42,8 +42,8 @@ netbios=conf.get("netbios name")
secrets = ldb.Ldb(path)
-search = "(&(objectclass=primaryDomain)(samaccountname=" + \
- netbios + "$))"
+search = ("(&(objectclass=primaryDomain)(samaccountname=" +
+ netbios + "$))")
msg = secrets.search(expression=search, attrs=['secret'])
diff --git a/source4/scripting/bin/renamedc b/source4/scripting/bin/renamedc
index 0915b15783..9d6f5c4c29 100755
--- a/source4/scripting/bin/renamedc
+++ b/source4/scripting/bin/renamedc
@@ -86,8 +86,8 @@ if __name__ == '__main__':
names = find_provision_key_parameters(ldbs.sam, ldbs.secrets, ldbs.idmap,
paths, smbconf, lp)
-
- #First rename the entry
+
+ # First rename the entry
# provision put the name in upper case so let's do it too !
newdn = str(res[0].dn).replace("CN=%s" % opts.oldname, "CN=%s" % opts.newname.upper())
dnobj = ldb.Dn(ldbs.sam, newdn)