diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-03 15:53:28 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:47:29 +0100 |
commit | 43696d2752e2faad34fb3ed2a7dbf01d40ffdc46 (patch) | |
tree | d16b58eca5fc3294f4b1d1d7a7bf287cdec333d8 /source4/ntptr/simple_ldb | |
parent | 7b38aa728eb722cd14fa0ad4e246df0d2e54faba (diff) | |
download | samba-43696d2752e2faad34fb3ed2a7dbf01d40ffdc46.tar.gz samba-43696d2752e2faad34fb3ed2a7dbf01d40ffdc46.tar.bz2 samba-43696d2752e2faad34fb3ed2a7dbf01d40ffdc46.zip |
r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e9415daabb2712db1372e23f9846272ede)
Diffstat (limited to 'source4/ntptr/simple_ldb')
-rw-r--r-- | source4/ntptr/simple_ldb/ntptr_simple_ldb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntptr/simple_ldb/ntptr_simple_ldb.c b/source4/ntptr/simple_ldb/ntptr_simple_ldb.c index 2a163943ad..f4437b389d 100644 --- a/source4/ntptr/simple_ldb/ntptr_simple_ldb.c +++ b/source4/ntptr/simple_ldb/ntptr_simple_ldb.c @@ -42,9 +42,9 @@ connect to the SPOOLSS database return a ldb_context pointer on success, or NULL on failure */ -static struct ldb_context *sptr_db_connect(TALLOC_CTX *mem_ctx) +static struct ldb_context *sptr_db_connect(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx) { - return ldb_wrap_connect(mem_ctx, global_loadparm, lp_spoolss_url(global_loadparm), system_session(mem_ctx), + return ldb_wrap_connect(mem_ctx, lp_ctx, lp_spoolss_url(lp_ctx), system_session(mem_ctx, lp_ctx), NULL, 0, NULL); } @@ -87,7 +87,7 @@ static int sptr_db_search(struct ldb_context *ldb, static NTSTATUS sptr_init_context(struct ntptr_context *ntptr) { - struct ldb_context *sptr_db = sptr_db_connect(ntptr); + struct ldb_context *sptr_db = sptr_db_connect(ntptr, global_loadparm); NT_STATUS_HAVE_NO_MEMORY(sptr_db); ntptr->private_data = sptr_db; |