From a34c837fdb59df1e66be9b5f23a07990e34fea1c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Sep 2013 00:56:15 +0200 Subject: [PATCH] s3:winbindd: make use of rpccli_netlogon_network_logon() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/winbindd/winbindd_pam.c | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 39483a5d5e6..3f3ec7090f2 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -1228,6 +1228,8 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain, do { struct rpc_pipe_client *netlogon_pipe; + uint8_t authoritative = 0; + uint32_t flags = 0; ZERO_STRUCTP(info3); retry = false; @@ -1276,19 +1278,19 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain, } netr_attempts = 0; - result = rpccli_netlogon_sam_network_logon( - netlogon_pipe, - mem_ctx, - logon_parameters, - server, /* server name */ - username, /* user name */ - domainname, /* target domain */ - workstation, /* workstation */ - chal, - -1, /* ignored */ - lm_response, - nt_response, - info3); + result = rpccli_netlogon_network_logon(domain->conn.netlogon_creds, + netlogon_pipe->binding_handle, + mem_ctx, + logon_parameters, + username, + domainname, + workstation, + chal, + lm_response, + nt_response, + &authoritative, + &flags, + info3); /* * we increment this after the "feature negotiation" -- 2.11.4.GIT