summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_sam_logon.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/winbind/wb_sam_logon.c')
-rw-r--r--source4/winbind/wb_sam_logon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/winbind/wb_sam_logon.c b/source4/winbind/wb_sam_logon.c
index 669d63f791..c9203c8bec 100644
--- a/source4/winbind/wb_sam_logon.c
+++ b/source4/winbind/wb_sam_logon.c
@@ -85,14 +85,14 @@ static void wb_sam_logon_recv_domain(struct composite_context *creq)
s->ctx->status = wb_sid2domain_recv(creq, &domain);
if (!composite_is_ok(s->ctx)) return;
- s->creds_state = cli_credentials_get_netlogon_creds(domain->schannel_creds);
+ s->creds_state = cli_credentials_get_netlogon_creds(domain->libnet_ctx->cred);
creds_client_authenticator(s->creds_state, &s->auth1);
s->r.in.server_name = talloc_asprintf(s, "\\\\%s",
dcerpc_server_name(domain->netlogon_pipe));
if (composite_nomem(s->r.in.server_name, s->ctx)) return;
- s->r.in.computer_name = cli_credentials_get_workstation(domain->schannel_creds);
+ s->r.in.computer_name = cli_credentials_get_workstation(domain->libnet_ctx->cred);
s->r.in.credential = &s->auth1;
s->r.in.return_authenticator = &s->auth2;
s->r.in.logon_level = s->req->in.logon_level;