diff options
Diffstat (limited to 'source4/scripting/python/misc.i')
-rw-r--r-- | source4/scripting/python/misc.i | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/scripting/python/misc.i b/source4/scripting/python/misc.i index 088522320e..3d886a25bc 100644 --- a/source4/scripting/python/misc.i +++ b/source4/scripting/python/misc.i @@ -21,12 +21,20 @@ %{ #include "includes.h" #include "ldb.h" -#include "auth/credentials/credentials.h" %} %import "stdint.i" +%include "exception.i" %import "../../lib/talloc/talloc.i" +%import "../../lib/ldb/ldb.i" +%import "../../auth/credentials/credentials.i" %rename(random_password) generate_random_str; char *generate_random_str(TALLOC_CTX *mem_ctx, size_t len); +%inline %{ +void ldb_set_credentials(struct ldb_context *ldb, struct cli_credentials *creds) +{ + ldb_set_opaque(ldb, "credentials", creds); +} +%} |