From 845d5add3cda7fc2bc0c9119f33f7340fd70833e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 17 Jul 2011 13:28:21 +0200 Subject: scripting/bin: Some formatting fixes. --- source4/scripting/bin/mymachinepw | 4 ++-- source4/scripting/bin/renamedc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/scripting') 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) -- cgit