diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 12:07:51 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:51:09 +0100 |
commit | f89c7a6e5eb082794d64b487e69fc442d138ca28 (patch) | |
tree | 3e53b034b4a3424d3c56c07797f33c478004fe75 /source4/scripting/python/misc.i | |
parent | c2604542295d5665172019da829544202ff034d6 (diff) | |
download | samba-f89c7a6e5eb082794d64b487e69fc442d138ca28.tar.gz samba-f89c7a6e5eb082794d64b487e69fc442d138ca28.tar.xz samba-f89c7a6e5eb082794d64b487e69fc442d138ca28.zip |
r26505: Add python bindings for some samdb-related functions, improve provisioning in python.
(This used to be commit d2402251666738c0372bbbaeaa1d26c06e254033)
Diffstat (limited to 'source4/scripting/python/misc.i')
-rw-r--r-- | source4/scripting/python/misc.i | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/scripting/python/misc.i b/source4/scripting/python/misc.i index 0a94fcdc297..518011ea43f 100644 --- a/source4/scripting/python/misc.i +++ b/source4/scripting/python/misc.i @@ -22,6 +22,7 @@ #include "includes.h" #include "ldb.h" #include "param/param.h" +#include "dsdb/samdb/samdb.h" %} %import "stdint.i" @@ -30,6 +31,8 @@ %import "../../lib/ldb/ldb.i" %import "../../auth/credentials/credentials.i" %import "../../param/param.i" +%import "../../libcli/security/security.i" +%import "../../libcli/util/errors.i"; %rename(random_password) generate_random_str; char *generate_random_str(TALLOC_CTX *mem_ctx, size_t len); @@ -49,4 +52,10 @@ void ldb_set_loadparm(struct ldb_context *ldb, struct loadparm_context *lp_ctx) { ldb_set_opaque(ldb, "loadparm", lp_ctx); } + %} + +bool samdb_set_domain_sid(struct ldb_context *ldb, + const struct dom_sid *dom_sid_in); + +WERROR dsdb_attach_schema_from_ldif_file(struct ldb_context *ldb, const char *pf, const char *df); |