s3-dsgetdcname: send the ip addr instead of the server name to ads_cldap_netlogon(). master
authorGünther Deschner <gd@samba.org>
Tue, 28 Apr 2009 10:01:53 +0000 (12:01 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 24 Nov 2009 15:52:51 +0000 (16:52 +0100)
Guenther

source3/libsmb/dsgetdcname.c

index 76a52c8..4b71f73 100644 (file)
@@ -856,9 +856,15 @@ static NTSTATUS process_dc_dns(TALLOC_CTX *mem_ctx,
 
        for (i=0; i<num_dcs; i++) {
 
-               DEBUG(10,("LDAP ping to %s\n", dclist[i].hostname));
+               char addr[INET6_ADDRSTRLEN];
+
+               print_sockaddr(addr, INET6_ADDRSTRLEN, &dclist[i].ss);
+
+               DEBUG(10,("LDAP ping to %s (ip: %s)\n",
+                       dclist[i].hostname, addr));
+
 
-               if (ads_cldap_netlogon(mem_ctx, dclist[i].hostname,
+               if (ads_cldap_netlogon(mem_ctx, addr,
                                        domain_name,
                                        nt_version,
                                        &r))