mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
r26477: Allow setting loadparm context for a ldb context in python, plus some other minor improvements.
(This used to be commit d88527a9d6
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
92d42862dd
commit
440fd87961
@ -21,6 +21,7 @@
|
||||
%{
|
||||
#include "includes.h"
|
||||
#include "ldb.h"
|
||||
#include "param/param.h"
|
||||
%}
|
||||
|
||||
%import "stdint.i"
|
||||
@ -28,6 +29,7 @@
|
||||
%import "../../lib/talloc/talloc.i"
|
||||
%import "../../lib/ldb/ldb.i"
|
||||
%import "../../auth/credentials/credentials.i"
|
||||
%import "../../param/param.i"
|
||||
|
||||
%rename(random_password) generate_random_str;
|
||||
char *generate_random_str(TALLOC_CTX *mem_ctx, size_t len);
|
||||
@ -37,4 +39,16 @@ void ldb_set_credentials(struct ldb_context *ldb, struct cli_credentials *creds)
|
||||
{
|
||||
ldb_set_opaque(ldb, "credentials", creds);
|
||||
}
|
||||
|
||||
#if 0 /* Fails to link.. */
|
||||
void ldb_set_session_info(struct ldb_context *ldb, struct auth_session_info *session_info)
|
||||
{
|
||||
ldb_set_opaque(ldb, "sessionInfo", session_info);
|
||||
}
|
||||
#endif
|
||||
|
||||
void ldb_set_loadparm(struct ldb_context *ldb, struct loadparm_context *lp_ctx)
|
||||
{
|
||||
ldb_set_opaque(ldb, "loadparm", lp_ctx);
|
||||
}
|
||||
%}
|
||||
|
Reference in New Issue
Block a user