mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
winbindd: remove useless calls to get_trust_credentials() before cli_rpc_pipe_open_schannel_with_creds()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13231 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
53484d0d98
commit
1918a870c3
@ -2758,13 +2758,6 @@ retry:
|
||||
goto anonymous;
|
||||
}
|
||||
TALLOC_FREE(creds);
|
||||
result = get_trust_credentials(domain, talloc_tos(), true, &creds);
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
DEBUG(10, ("cm_connect_sam: No user available for "
|
||||
"domain %s (error %s), trying anon\n", domain->name,
|
||||
nt_errstr(result)));
|
||||
goto anonymous;
|
||||
}
|
||||
status = cli_rpc_pipe_open_schannel_with_creds(
|
||||
conn->cli, &ndr_table_samr, NCACN_NP, p_creds,
|
||||
&conn->samr_pipe);
|
||||
@ -2908,7 +2901,6 @@ static NTSTATUS cm_connect_lsa_tcp(struct winbindd_domain *domain,
|
||||
{
|
||||
struct winbindd_cm_conn *conn;
|
||||
struct netlogon_creds_cli_context *p_creds = NULL;
|
||||
struct cli_credentials *creds = NULL;
|
||||
NTSTATUS status;
|
||||
|
||||
DEBUG(10,("cm_connect_lsa_tcp\n"));
|
||||
@ -2936,11 +2928,6 @@ static NTSTATUS cm_connect_lsa_tcp(struct winbindd_domain *domain,
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = get_trust_credentials(domain, talloc_tos(), true, &creds);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = cli_rpc_pipe_open_schannel_with_creds(conn->cli,
|
||||
&ndr_table_lsarpc,
|
||||
NCACN_IP_TCP,
|
||||
@ -3063,13 +3050,6 @@ retry:
|
||||
}
|
||||
|
||||
TALLOC_FREE(creds);
|
||||
result = get_trust_credentials(domain, talloc_tos(), true, &creds);
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
DEBUG(10, ("cm_connect_lsa: No user available for "
|
||||
"domain %s (error %s), trying anon\n", domain->name,
|
||||
nt_errstr(result)));
|
||||
goto anonymous;
|
||||
}
|
||||
result = cli_rpc_pipe_open_schannel_with_creds(
|
||||
conn->cli, &ndr_table_lsarpc, NCACN_NP, p_creds,
|
||||
&conn->lsa_pipe);
|
||||
|
Loading…
x
Reference in New Issue
Block a user