mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
In libnet join code, try lsa query with level 12 first.
Guenther
(This used to be commit f0e8d744c9
)
This commit is contained in:
parent
b6347c0693
commit
f3476faa36
@ -73,14 +73,6 @@ static NTSTATUS do_DomainJoin(TALLOC_CTX *mem_ctx,
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = rpccli_lsa_query_info_policy(pipe_hnd, mem_ctx, &lsa_pol,
|
||||
5,
|
||||
&r->out.netbios_domain_name,
|
||||
&r->out.domain_sid);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = rpccli_lsa_query_info_policy2(pipe_hnd, mem_ctx, &lsa_pol,
|
||||
12,
|
||||
&r->out.netbios_domain_name,
|
||||
@ -89,6 +81,16 @@ static NTSTATUS do_DomainJoin(TALLOC_CTX *mem_ctx,
|
||||
NULL,
|
||||
&r->out.domain_sid);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
status = rpccli_lsa_query_info_policy(pipe_hnd, mem_ctx, &lsa_pol,
|
||||
5,
|
||||
&r->out.netbios_domain_name,
|
||||
&r->out.domain_sid);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
rpccli_lsa_Close(pipe_hnd, mem_ctx, &lsa_pol);
|
||||
cli_rpc_pipe_close(pipe_hnd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user