diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2011-06-30 10:29:23 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-06-30 10:55:26 +0200 |
commit | ac28c8216f3230bf647bc95f582a0d45e81fe33c (patch) | |
tree | 207cbbd8772b08ab0914b71fb1c67b9e16b0fdb9 /source4/scripting/bin | |
parent | c9e3f6ab02bdc354a9b656f62744ee66fe9e9e67 (diff) | |
download | samba-ac28c8216f3230bf647bc95f582a0d45e81fe33c.tar.gz samba-ac28c8216f3230bf647bc95f582a0d45e81fe33c.tar.bz2 samba-ac28c8216f3230bf647bc95f582a0d45e81fe33c.zip |
enablerecyclebin: Remove unused imports, fix formatting.
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-x | source4/scripting/bin/enablerecyclebin | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/scripting/bin/enablerecyclebin b/source4/scripting/bin/enablerecyclebin index 61ad32cd49..ab36ead1b8 100755 --- a/source4/scripting/bin/enablerecyclebin +++ b/source4/scripting/bin/enablerecyclebin @@ -2,9 +2,7 @@ # # enabled the Recycle Bin optional feature # -import base64 import optparse -import os import sys # Find right directory when running from source tree @@ -12,7 +10,7 @@ sys.path.insert(0, "bin/python") import samba from samba import getopt as options, Ldb -from ldb import SCOPE_SUBTREE, SCOPE_BASE, LdbError +from ldb import SCOPE_BASE import sys import ldb from samba.auth import system_session @@ -48,8 +46,8 @@ configbase=rootDse["configurationNamingContext"] msg = ldb.Message() msg.dn = ldb.Dn(sam_ldb, "") msg["enableOptionalFeature"] = ldb.MessageElement( - "CN=Partitions," + str(configbase) + ":766ddcd8-acd0-445e-f3b9-a7f9b6744f2a", - ldb.FLAG_MOD_ADD, "enableOptionalFeature") + "CN=Partitions," + str(configbase) + ":766ddcd8-acd0-445e-f3b9-a7f9b6744f2a", + ldb.FLAG_MOD_ADD, "enableOptionalFeature") res = sam_ldb.modify(msg) print "Recycle Bin feature enabled" |