summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 16:44:28 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:09 +0200
commit49c8534ae41222ef1fa6be0f3a1d77098a40abdb (patch)
tree71ae7acff8e98a99f78849dab5bc19cb22e241f1 /source3
parentefc2c3159ebc8c42bbb78fd07e4c21b6e74e45ba (diff)
downloadsamba-49c8534ae41222ef1fa6be0f3a1d77098a40abdb.tar.gz
samba-49c8534ae41222ef1fa6be0f3a1d77098a40abdb.tar.bz2
samba-49c8534ae41222ef1fa6be0f3a1d77098a40abdb.zip
s3:cli_pipe_schannel: make use of cli_state_remote_name()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe_schannel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpc_client/cli_pipe_schannel.c b/source3/rpc_client/cli_pipe_schannel.c
index f48c4c7318..2c937df0f0 100644
--- a/source3/rpc_client/cli_pipe_schannel.c
+++ b/source3/rpc_client/cli_pipe_schannel.c
@@ -26,7 +26,7 @@
#include "librpc/gen_ndr/ndr_dcerpc.h"
#include "librpc/rpc/dcerpc.h"
#include "passdb.h"
-#include "client.h"
+#include "libsmb/libsmb.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_CLI
@@ -56,7 +56,7 @@ static NTSTATUS get_schannel_session_key_common(struct rpc_pipe_client *netlogon
}
status = rpccli_netlogon_setup_creds(netlogon_pipe,
- cli->desthost, /* server name */
+ cli_state_remote_name(cli), /* server name */
domain, /* domain */
lp_netbios_name(), /* client name */
machine_account, /* machine account name */
@@ -68,14 +68,14 @@ static NTSTATUS get_schannel_session_key_common(struct rpc_pipe_client *netlogon
DEBUG(3, ("get_schannel_session_key_common: "
"rpccli_netlogon_setup_creds failed with result %s "
"to server %s, domain %s, machine account %s.\n",
- nt_errstr(status), cli->desthost, domain,
+ nt_errstr(status), cli_state_remote_name(cli), domain,
machine_account ));
return status;
}
if (((*pneg_flags) & NETLOGON_NEG_SCHANNEL) == 0) {
DEBUG(3, ("get_schannel_session_key: Server %s did not offer schannel\n",
- cli->desthost));
+ cli_state_remote_name(cli)));
return NT_STATUS_INVALID_NETWORK_RESPONSE;
}
@@ -142,7 +142,7 @@ NTSTATUS cli_rpc_pipe_open_ntlmssp_auth_schannel(struct cli_state *cli,
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("cli_rpc_pipe_open_ntlmssp_auth_schannel: failed to get schannel session "
"key from server %s for domain %s.\n",
- cli->desthost, domain ));
+ cli_state_remote_name(cli), domain ));
return status;
}
@@ -181,7 +181,7 @@ NTSTATUS cli_rpc_pipe_open_schannel(struct cli_state *cli,
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("cli_rpc_pipe_open_schannel: failed to get schannel session "
"key from server %s for domain %s.\n",
- cli->desthost, domain ));
+ cli_state_remote_name(cli), domain ));
return status;
}