diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-11-11 14:27:25 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-05-28 06:43:38 +0000 |
commit | ee4eab14f16f967188a1e68fcf27e8e9fd653eeb (patch) | |
tree | 75d57376fcddf27e9c5c7e6856ba530cff42fe94 /source3/rpc_client | |
parent | e8d71172cafd74a622bb0d375507f6f5ee3ffe88 (diff) | |
download | samba-ee4eab14f16f967188a1e68fcf27e8e9fd653eeb.tar.gz |
s3:cli_pipe: improve debug messages in cli_rpc_pipe_open_with_creds()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 11bb5414bc4..f67869ffd50 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -3188,7 +3188,6 @@ NTSTATUS cli_rpc_pipe_open_with_creds(struct cli_state *cli, struct rpc_pipe_client *result; struct pipe_auth_data *auth = NULL; const char *target_service = table->authservices->names[0]; - NTSTATUS status; status = cli_rpc_pipe_open(cli, transport, table, &result); @@ -3202,21 +3201,22 @@ NTSTATUS cli_rpc_pipe_open_with_creds(struct cli_state *cli, creds, &auth); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("rpccli_generic_bind_data returned %s\n", - nt_errstr(status))); + DBG_ERR("rpccli_generic_bind_data_from_creds returned %s\n", + nt_errstr(status)); goto err; } status = rpc_pipe_bind(result, auth); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("cli_rpc_pipe_open_generic_auth: cli_rpc_pipe_bind failed with error %s\n", - nt_errstr(status) )); + DBG_ERR("cli_rpc_pipe_bind failed with error %s\n", + nt_errstr(status)); goto err; } - DEBUG(10,("cli_rpc_pipe_open_generic_auth: opened pipe %s to " - "machine %s and bound as user %s.\n", table->name, - result->desthost, cli_credentials_get_unparsed_name(creds, talloc_tos()))); + DBG_DEBUG("opened pipe %s to machine %s and bound as user %s.\n", + table->name, + result->desthost, + cli_credentials_get_unparsed_name(creds, talloc_tos())); *presult = result; return NT_STATUS_OK; |