diff options
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/samdb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c index 18e482c9d3..c5eba8ae84 100644 --- a/source4/dsdb/samdb/samdb.c +++ b/source4/dsdb/samdb/samdb.c @@ -33,11 +33,13 @@ connect to the SAM database return an opaque context pointer on success, or NULL on failure */ -struct ldb_context *samdb_connect(TALLOC_CTX *mem_ctx, struct auth_session_info *session_info) +struct ldb_context *samdb_connect(TALLOC_CTX *mem_ctx, + struct auth_session_info *session_info) { struct ldb_context *ldb; - ldb = ldb_wrap_connect(mem_ctx, lp_sam_url(), 0, NULL); - if (ldb_set_opaque(ldb, "sessionInfo", session_info)) { + ldb = ldb_wrap_connect(mem_ctx, lp_sam_url(), session_info, + NULL, 0, NULL); + if (!ldb) { return NULL; } return ldb; |