summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-24 17:56:49 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-26 05:15:07 +0200
commit976eca077d2ea9b44b4b62ae851ca9cc470e3729 (patch)
treeae926cad390b4a64b3cac9c3622f8a4e0b7180c0
parent575f1243856f52f87ccb09f1235f1263b7c54b9b (diff)
downloadsamba-976eca077d2ea9b44b4b62ae851ca9cc470e3729.tar.gz
samba-976eca077d2ea9b44b4b62ae851ca9cc470e3729.tar.bz2
samba-976eca077d2ea9b44b4b62ae851ca9cc470e3729.zip
Move some scripts to examples directory since they're not really generically useful.
(This used to be commit 4026493e91f8096e5d602cd42f9a83d2d75042db)
-rwxr-xr-xsource4/scripting/bin/samba3dump4
-rwxr-xr-xsource4/scripting/python/examples/samr.py (renamed from source4/scripting/bin/samr.py)2
-rwxr-xr-xsource4/scripting/python/examples/winreg.py (renamed from source4/scripting/bin/winreg.py)0
3 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/bin/samba3dump b/source4/scripting/bin/samba3dump
index d89667233f..c11f8dbd0d 100755
--- a/source4/scripting/bin/samba3dump
+++ b/source4/scripting/bin/samba3dump
@@ -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
diff --git a/source4/scripting/bin/samr.py b/source4/scripting/python/examples/samr.py
index e91b5bc312..1f2afbe688 100755
--- a/source4/scripting/bin/samr.py
+++ b/source4/scripting/python/examples/samr.py
@@ -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:
diff --git a/source4/scripting/bin/winreg.py b/source4/scripting/python/examples/winreg.py
index 19d39e56ab..19d39e56ab 100755
--- a/source4/scripting/bin/winreg.py
+++ b/source4/scripting/python/examples/winreg.py