py-samdb: added get_invocation_id() method
authorAndrew Tridgell <tridge@samba.org>
Thu, 25 Feb 2010 07:15:47 +0000 (18:15 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Feb 2010 02:59:17 +0000 (13:59 +1100)
source4/scripting/python/samba/__init__.py

index d7df6b979bfbc7cb1726166d1e9e9d3b322454c8..1e0fc099abb051b442c04d16297ce78d7b103a3d 100644 (file)
@@ -292,6 +292,11 @@ class Ldb(ldb.Ldb):
         """
         glue.dsdb_set_ntds_invocation_id(self, invocation_id)
 
+    def get_invocation_id(self):
+        "Get the invocation_id id"
+        return glue.samdb_ntds_invocation_id(self)
+
+
     def set_opaque_integer(self, name, value):
         """Set an integer as an opaque (a flag or other value) value on the database