diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-11 16:43:07 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-10-11 13:02:15 +0000 |
commit | 5cd9495fb3f74d8e896c81e5c060a1643722870e (patch) | |
tree | accf27ddb2a3e04abe2a10b8340c7ff08ccfee34 /source4/rpc_server | |
parent | baeaa179868fedb797df811bdf4d4a87bf604b8c (diff) | |
download | samba-5cd9495fb3f74d8e896c81e5c060a1643722870e.tar.gz samba-5cd9495fb3f74d8e896c81e5c060a1643722870e.tar.bz2 samba-5cd9495fb3f74d8e896c81e5c060a1643722870e.zip |
s4-param Refactor secrets code to not require an event context.
A new event context is constructed by LDB when required for secrets.ldb
This will be essentially unused, as LDB on TDB will only trigger 'fake'
events, and blocks on transactions and lock operations anyway.
Andrew Bartlett
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index a3cedbba4d..8a50588f58 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -2923,7 +2923,7 @@ static NTSTATUS dcesrv_lsa_CreateSecret(struct dcesrv_call_state *dce_call, TALL } secret_state->sam_ldb = talloc_reference(secret_state, - secrets_db_connect(mem_ctx, dce_call->event_ctx, dce_call->conn->dce_ctx->lp_ctx)); + secrets_db_connect(mem_ctx, dce_call->conn->dce_ctx->lp_ctx)); /* 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"), @@ -3046,7 +3046,7 @@ static NTSTATUS dcesrv_lsa_OpenSecret(struct dcesrv_call_state *dce_call, TALLOC } else { secret_state->global = false; secret_state->sam_ldb = talloc_reference(secret_state, - secrets_db_connect(mem_ctx, dce_call->event_ctx, dce_call->conn->dce_ctx->lp_ctx)); + secrets_db_connect(mem_ctx, dce_call->conn->dce_ctx->lp_ctx)); name = r->in.name.string; if (strlen(name) < 1) { |