[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha2-335-gff14ffc
Jelmer Vernooij
jelmer at samba.org
Thu Jan 10 22:41:53 GMT 2008
The branch, v4-0-test has been updated
via ff14ffc6582874d8248798bebd57703fbdbda942 (commit)
via c21886614ddacbabef2420e4cf67e0488439c9c8 (commit)
via 47d797f7885b1e7bcff724496ecb1990e8440eea (commit)
from 4720f53a92644dd6959e18923924fbe01889111c (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit ff14ffc6582874d8248798bebd57703fbdbda942
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Thu Jan 10 23:40:08 2008 +0100
Ignore compiled Python files.
commit c21886614ddacbabef2420e4cf67e0488439c9c8
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Thu Jan 10 22:04:50 2008 +0100
Update ignore list.
commit 47d797f7885b1e7bcff724496ecb1990e8440eea
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Thu Jan 10 21:44:38 2008 +0100
tdb: Add simple reimplementation of tdbdump in Python as an example of the tdb Python bindings.
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 13 +++++++++++++
source/lib/tdb/python/tdbdump.py | 12 ++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
create mode 100644 source/lib/tdb/python/tdbdump.py
Changeset truncated at 500 lines:
diff --git a/.gitignore b/.gitignore
index 8af28d0..7d87dbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ autom4te.cache
*.x
*.hd
*.ho
+*.pyc
Makefile
configure
source/bin/*
@@ -179,3 +180,15 @@ source/lib/registry/tools/common.h
source/librpc/ndr/ndr_table.h
source/rpc_server/lsa/proto.h
source/torture/winbind/proto.h
+*~
+source/auth/auth_sam_reply.h
+source/auth/session_proto.h
+source/auth/system_session_proto.h
+source/dsdb/common/proto.h
+source/dsdb/schema/proto.h
+source/lib/crypto/test_proto.h
+source/lib/registry/tests/proto.h
+source/lib/util/apidocs
+source/lib/util/util_ldb.h
+source/libcli/ldap/ldap_ndr.h
+source/libcli/resolve/lp_proto.h
diff --git a/source/lib/tdb/python/tdbdump.py b/source/lib/tdb/python/tdbdump.py
new file mode 100644
index 0000000..d759d77
--- /dev/null
+++ b/source/lib/tdb/python/tdbdump.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+# Trivial reimplementation of tdbdump in Python
+
+import tdb, sys
+
+if len(sys.argv) < 2:
+ print "Usage: tdbdump.py <tdb-file>"
+ sys.exit(1)
+
+db = tdb.Tdb(sys.argv[1])
+for (k, v) in db.iteritems():
+ print "{\nkey(%d) = %r\ndata(%d) = %r\n}" % (len(k), k, len(v), v)
--
Samba Shared Repository
More information about the samba-cvs
mailing list