summaryrefslogtreecommitdiff
path: root/source4/scripting/python/misc.i
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-25 23:16:34 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-25 23:16:34 +1100
commit98d2b00dbe08b1303858be5f85704fa4bd1e7233 (patch)
tree565407437cc94938e7a8988eaa2d92f6dd9b1261 /source4/scripting/python/misc.i
parent8ef7ddbf895d0126f578fcc46d2cb292addddf2b (diff)
parent21f5f4d4409e5a7076194639570f11ec32cf3257 (diff)
downloadsamba-98d2b00dbe08b1303858be5f85704fa4bd1e7233.tar.gz
samba-98d2b00dbe08b1303858be5f85704fa4bd1e7233.tar.bz2
samba-98d2b00dbe08b1303858be5f85704fa4bd1e7233.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 1e042908992cdf3149ffc24472c7f0b1c3f9edef)
Diffstat (limited to 'source4/scripting/python/misc.i')
-rw-r--r--source4/scripting/python/misc.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/scripting/python/misc.i b/source4/scripting/python/misc.i
index 2f41840670..a11b2fb825 100644
--- a/source4/scripting/python/misc.i
+++ b/source4/scripting/python/misc.i
@@ -66,3 +66,14 @@ WERROR dsdb_attach_schema_from_ldif_file(struct ldb_context *ldb, const char *pf
const char *samba_version_string(void);
int dsdb_set_global_schema(struct ldb_context *ldb);
int ldb_register_samba_handlers(struct ldb_context *ldb);
+
+%inline %{
+bool dsdb_set_ntds_invocation_id(struct ldb_context *ldb, const char *guid)
+{
+ struct GUID invocation_id_in;
+ if (NT_STATUS_IS_ERR(GUID_from_string(guid, &invocation_id_in))) {
+ return false;
+ }
+ return samdb_set_ntds_invocation_id(ldb, &invocation_id_in);
+}
+%}