diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-29 16:01:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:46:51 +0100 |
commit | 991ee1aff092187bcfdd0ee1d9eb15361f73d5f7 (patch) | |
tree | 791d32dde17b8d4612b8526d5d81ef81a681928b /source4/rpc_server/lsa | |
parent | 0e191fa26ab6f0f4119eccca0170e5ebd7f46382 (diff) | |
download | samba-991ee1aff092187bcfdd0ee1d9eb15361f73d5f7.tar.gz samba-991ee1aff092187bcfdd0ee1d9eb15361f73d5f7.tar.bz2 samba-991ee1aff092187bcfdd0ee1d9eb15361f73d5f7.zip |
r26205: Pass loadparm_context to secrets_db_connect() rather than using global context.
(This used to be commit 5718b6cfee86ddfc9cf405c98c68ba848df4d9d7)
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 93c1ee9e4d..9d1f43a214 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -1713,7 +1713,8 @@ static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALL return NT_STATUS_INVALID_PARAMETER; } - secret_state->sam_ldb = talloc_reference(secret_state, secrets_db_connect(mem_ctx)); + secret_state->sam_ldb = talloc_reference(secret_state, secrets_db_connect(mem_ctx, + global_loadparm)); /* search for the secret record */ ret = gendb_search(secret_state->sam_ldb, mem_ctx, ldb_dn_new(mem_ctx, secret_state->sam_ldb, "cn=LSA Secrets"), @@ -1831,7 +1832,8 @@ static NTSTATUS dcesrv_lsa_OpenSecret(struct dcesrv_call_state *dce_call, TALLOC } } else { - secret_state->sam_ldb = talloc_reference(secret_state, secrets_db_connect(mem_ctx)); + secret_state->sam_ldb = talloc_reference(secret_state, + secrets_db_connect(mem_ctx, global_loadparm)); secret_state->global = false; name = r->in.name.string; |