s3:libsmb: get rid of cli_state_remote_name
[kai/samba.git] / source3 / libnet / libnet_join.c
index 2b832d8024474820e9fce21d41c642d1a6dfee8e..c549b586cb5a544cf3afad909deddc497b8de3a0 100644 (file)
@@ -1210,7 +1210,7 @@ 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_state_remote_name(cli),
+                       smbXcli_conn_remote_name(cli->conn),
                        netbios_domain_name, nt_errstr(status)));
                cli_shutdown(cli);
                return status;
@@ -1232,7 +1232,7 @@ 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_state_remote_name(cli),
+                       smbXcli_conn_remote_name(cli->conn),
                        netbios_domain_name, nt_errstr(status)));
                return status;
        }
@@ -1979,7 +1979,7 @@ 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, smbXcli_conn_remote_sockaddr(cli->conn),
-               cli_state_remote_name(cli));
+               smbXcli_conn_remote_name(cli->conn));
 
        if (r->out.domain_is_ad && r->in.account_ou &&
            !(r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_UNSECURE)) {