summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 16:28:27 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:09 +0200
commit22cbb59c37e770437668aa23329e5b5a7420bf20 (patch)
tree9b6c88a9a3a88ddb68de185e9348cfba6cc5a5d3
parentbb0d063f01368c874774276ddb599e606c92ee49 (diff)
downloadsamba-22cbb59c37e770437668aa23329e5b5a7420bf20.tar.gz
samba-22cbb59c37e770437668aa23329e5b5a7420bf20.tar.bz2
samba-22cbb59c37e770437668aa23329e5b5a7420bf20.zip
s3:libnet_join: make use of cli_state_remote_name()
-rw-r--r--source3/libnet/libnet_join.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 1f21229d35..1532299375 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1210,7 +1210,8 @@ NTSTATUS libnet_join_ok(const char *netbios_domain_name,
DEBUG(0,("libnet_join_ok: failed to get schannel session "
"key from server %s for domain %s. Error was %s\n",
- cli->desthost, netbios_domain_name, nt_errstr(status)));
+ cli_state_remote_name(cli),
+ netbios_domain_name, nt_errstr(status)));
cli_shutdown(cli);
return status;
}
@@ -1231,7 +1232,8 @@ NTSTATUS libnet_join_ok(const char *netbios_domain_name,
DEBUG(0,("libnet_join_ok: failed to open schannel session "
"on netlogon pipe to server %s for domain %s. "
"Error was %s\n",
- cli->desthost, netbios_domain_name, nt_errstr(status)));
+ cli_state_remote_name(cli),
+ netbios_domain_name, nt_errstr(status)));
return status;
}
@@ -2007,7 +2009,8 @@ static WERROR libnet_DomainJoin(TALLOC_CTX *mem_ctx,
create_local_private_krb5_conf_for_domain(
r->out.dns_domain_name, r->out.netbios_domain_name,
- NULL, cli_state_remote_sockaddr(cli), cli->desthost);
+ NULL, cli_state_remote_sockaddr(cli),
+ cli_state_remote_name(cli));
if (r->out.domain_is_ad && r->in.account_ou &&
!(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_UNSECURE)) {