summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-07-17 13:28:21 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-07-23 22:08:08 +0200
commit845d5add3cda7fc2bc0c9119f33f7340fd70833e (patch)
tree5ac9a9b865b3707610142ac63c202f6f484478ea /source4/scripting/bin
parent824a300d2be8403dc9723a39e4bef88c43e46cc4 (diff)
downloadsamba-845d5add3cda7fc2bc0c9119f33f7340fd70833e.tar.gz
samba-845d5add3cda7fc2bc0c9119f33f7340fd70833e.tar.bz2
samba-845d5add3cda7fc2bc0c9119f33f7340fd70833e.zip
scripting/bin: Some formatting fixes.
Diffstat (limited to 'source4/scripting/bin')
-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)