summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-02-18 16:17:06 -0500
committerSimo Sorce <idra@samba.org>2010-02-23 12:46:50 -0500
commit1d0938c629904e14c3769036d1a8d1a6d7b3f34b (patch)
tree58be783a916378417e6e821a5d28a5995381134c /source3/rpc_server
parent3b12c38ac09ad253cf56099c243659a3a362ea67 (diff)
downloadsamba-1d0938c629904e14c3769036d1a8d1a6d7b3f34b.tar.gz
samba-1d0938c629904e14c3769036d1a8d1a6d7b3f34b.tar.bz2
samba-1d0938c629904e14c3769036d1a8d1a6d7b3f34b.zip
schannel_tdb: make code compilable in both trees
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c7
-rw-r--r--source3/rpc_server/srv_pipe.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 15f19b5207..b9bfda9a83 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -724,7 +724,8 @@ NTSTATUS _netr_ServerAuthenticate3(pipes_struct *p,
/* Store off the state so we can continue after client disconnect. */
become_root();
- status = schannel_save_creds_state(p->mem_ctx, creds);
+ status = schannel_save_creds_state(p->mem_ctx,
+ NULL, lp_private_dir(), creds);
unbecome_root();
if (!NT_STATUS_IS_OK(status)) {
@@ -817,7 +818,8 @@ static NTSTATUS netr_creds_server_step_check(pipes_struct *p,
}
}
- status = schannel_check_creds_state(mem_ctx,
+ status = schannel_check_creds_state(mem_ctx, NULL,
+ lp_private_dir(),
computer_name,
received_authenticator,
return_authenticator,
@@ -1387,6 +1389,7 @@ NTSTATUS _netr_LogonSamLogonEx(pipes_struct *p,
become_root();
status = schannel_get_creds_state(p->mem_ctx,
+ NULL, lp_private_dir(),
r->in.computer_name, &creds);
unbecome_root();
if (!NT_STATUS_IS_OK(status)) {
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 5cde423daf..d65f52e4b3 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -1477,7 +1477,7 @@ static bool pipe_schannel_auth_bind(pipes_struct *p, prs_struct *rpc_in_p,
*/
become_root();
- status = schannel_get_creds_state(p,
+ status = schannel_get_creds_state(p, NULL, lp_private_dir(),
neg.oem_netbios_computer.a,
&creds);
unbecome_root();