mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:winbindd: make use of rpccli_netlogon_network_logon()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c6bb47f2f1
commit
a34c837fdb
@ -1228,6 +1228,8 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
struct rpc_pipe_client *netlogon_pipe;
|
struct rpc_pipe_client *netlogon_pipe;
|
||||||
|
uint8_t authoritative = 0;
|
||||||
|
uint32_t flags = 0;
|
||||||
|
|
||||||
ZERO_STRUCTP(info3);
|
ZERO_STRUCTP(info3);
|
||||||
retry = false;
|
retry = false;
|
||||||
@ -1276,19 +1278,19 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
|
|||||||
}
|
}
|
||||||
netr_attempts = 0;
|
netr_attempts = 0;
|
||||||
|
|
||||||
result = rpccli_netlogon_sam_network_logon(
|
result = rpccli_netlogon_network_logon(domain->conn.netlogon_creds,
|
||||||
netlogon_pipe,
|
netlogon_pipe->binding_handle,
|
||||||
mem_ctx,
|
mem_ctx,
|
||||||
logon_parameters,
|
logon_parameters,
|
||||||
server, /* server name */
|
username,
|
||||||
username, /* user name */
|
domainname,
|
||||||
domainname, /* target domain */
|
workstation,
|
||||||
workstation, /* workstation */
|
chal,
|
||||||
chal,
|
lm_response,
|
||||||
-1, /* ignored */
|
nt_response,
|
||||||
lm_response,
|
&authoritative,
|
||||||
nt_response,
|
&flags,
|
||||||
info3);
|
info3);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we increment this after the "feature negotiation"
|
* we increment this after the "feature negotiation"
|
||||||
|
Loading…
Reference in New Issue
Block a user