From: Andreas Schneider Date: Tue, 26 May 2020 10:10:06 +0000 (+0200) Subject: s3:rpcclient: Rename creds to trust_creds X-Git-Tag: ldb-2.2.0~305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2079a8f83d43b0a8067699df31af059b9321ed3e;p=thirdparty%2Fsamba.git s3:rpcclient: Rename creds to trust_creds Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 9d4f16531c2..34d5caa61b9 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -860,10 +860,10 @@ static NTSTATUS do_cmd(struct cli_state *cli, if (rpcclient_netlogon_creds == NULL && cmd_entry->use_netlogon_creds) { const char *dc_name = cmd_entry->rpc_pipe->desthost; const char *domain = rpcclient_netlogon_domain; - struct cli_credentials *creds = NULL; + struct cli_credentials *trust_creds = NULL; ntresult = pdb_get_trust_credentials(domain, NULL, - mem_ctx, &creds); + mem_ctx, &trust_creds); if (!NT_STATUS_IS_OK(ntresult)) { DEBUG(0, ("Failed to fetch trust credentials for " "%s to connect to %s: %s\n", @@ -874,7 +874,7 @@ static NTSTATUS do_cmd(struct cli_state *cli, return ntresult; } - ntresult = rpccli_create_netlogon_creds_ctx(creds, + ntresult = rpccli_create_netlogon_creds_ctx(trust_creds, dc_name, rpcclient_msg_ctx, rpcclient_msg_ctx, @@ -892,8 +892,8 @@ static NTSTATUS do_cmd(struct cli_state *cli, NCACN_NP, rpcclient_netlogon_creds, false, /* force_reauth */ - creds); - TALLOC_FREE(creds); + trust_creds); + TALLOC_FREE(trust_creds); if (!NT_STATUS_IS_OK(ntresult)) { DEBUG(0, ("Could not initialise credentials for %s.\n", cmd_entry->table->name));