]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Move some scripts to examples directory since they're not really generically useful.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 24 May 2008 15:56:49 +0000 (17:56 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 26 May 2008 03:15:07 +0000 (05:15 +0200)
source/scripting/bin/samba3dump
source/scripting/python/examples/samr.py [moved from source/scripting/bin/samr.py with 99% similarity]
source/scripting/python/examples/winreg.py [moved from source/scripting/bin/winreg.py with 100% similarity]

index d89667233f154635bd9d263c673c5b6e8edccd40..c11f8dbd0d74b86b6034b706e74ef2dfb78ebe57 100755 (executable)
@@ -14,7 +14,7 @@ sys.path.insert(0, "bin/python")
 import samba
 import samba.samba3
 
-parser = optparse.OptionParser("provision <libdir> [<smb.conf>]")
+parser = optparse.OptionParser("samba3dump <libdir> [<smb.conf>]")
 parser.add_option("--format", type="choice", metavar="FORMAT",
                   choices=["full", "summary"])
 
@@ -96,7 +96,7 @@ def print_samba3_secrets(secrets):
 
 def print_samba3_regdb(regdb):
     print_header("Registry")
-    from registry import str_regtype
+    from samba.registry import str_regtype
 
     for k in regdb.keys():
         print "[%s]" % k
similarity index 99%
rename from source/scripting/bin/samr.py
rename to source/scripting/python/examples/samr.py
index e91b5bc3126cda0ad17018d3c71059ac910754ad..1f2afbe688e85b2f1a9579a064557c7868d89cef 100755 (executable)
@@ -100,7 +100,7 @@ if len(sys.argv) != 2:
 
 binding = sys.argv[1]
 
-print "Connecting to " + binding
+print "Connecting to %s" % binding
 try:
     samr = samr.samr(binding)
 except Exception, e: