diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-12 22:55:34 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-13 14:06:07 +0200 |
commit | 5603dab6478fbb40206a8664a308b5db5b1863e8 (patch) | |
tree | 865595e3efb120830d8d7c52e5da786bbf554d99 /source4 | |
parent | 43d84aa619be5851acea82bef77164f0dc3e9f7e (diff) | |
download | samba-5603dab6478fbb40206a8664a308b5db5b1863e8.tar.gz samba-5603dab6478fbb40206a8664a308b5db5b1863e8.tar.bz2 samba-5603dab6478fbb40206a8664a308b5db5b1863e8.zip |
libcli/auth: Provide a struct loadparm_context to schannel calls
This will allow us to pass this down to the tdb_wrap layer.
Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/gensec/schannel.c | 2 | ||||
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 6 | ||||
-rw-r--r-- | source4/smbd/server.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c index 35713ce068..f947d45596 100644 --- a/source4/auth/gensec/schannel.c +++ b/source4/auth/gensec/schannel.c @@ -154,7 +154,7 @@ static NTSTATUS schannel_update(struct gensec_security *gensec_security, TALLOC_ } status = schannel_get_creds_state(out_mem_ctx, - lpcfg_private_dir(gensec_security->settings->lp_ctx), + gensec_security->settings->lp_ctx, workstation, &creds); if (!NT_STATUS_IS_OK(status)) { DEBUG(3, ("Could not find session key for attempted schannel connection from %s: %s\n", diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index d5a7eebb55..cbf223be47 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -270,7 +270,7 @@ static NTSTATUS dcesrv_netr_ServerAuthenticate3(struct dcesrv_call_state *dce_ca creds->sid = samdb_result_dom_sid(creds, msgs[0], "objectSid"); nt_status = schannel_save_creds_state(mem_ctx, - lpcfg_private_dir(dce_call->conn->dce_ctx->lp_ctx), + dce_call->conn->dce_ctx->lp_ctx, creds); return nt_status; @@ -382,7 +382,7 @@ static NTSTATUS dcesrv_netr_creds_server_step_check(struct dcesrv_call_state *dc } nt_status = schannel_check_creds_state(mem_ctx, - lpcfg_private_dir(dce_call->conn->dce_ctx->lp_ctx), + dce_call->conn->dce_ctx->lp_ctx, computer_name, received_authenticator, return_authenticator, @@ -839,7 +839,7 @@ static NTSTATUS dcesrv_netr_LogonSamLogonEx(struct dcesrv_call_state *dce_call, } nt_status = schannel_get_creds_state(mem_ctx, - lpcfg_private_dir(dce_call->conn->dce_ctx->lp_ctx), + dce_call->conn->dce_ctx->lp_ctx, r->in.computer_name, &creds); if (!NT_STATUS_IS_OK(nt_status)) { return nt_status; diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 322e45569f..c8549e2b56 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -393,7 +393,7 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[ } if (lpcfg_server_role(cmdline_lp_ctx) == ROLE_DOMAIN_CONTROLLER) { - if (!open_schannel_session_store(talloc_autofree_context(), lpcfg_private_dir(cmdline_lp_ctx))) { + if (!open_schannel_session_store(talloc_autofree_context(), cmdline_lp_ctx)) { DEBUG(0,("ERROR: Samba cannot open schannel store for secured NETLOGON operations.\n")); exit(1); } |