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 76a52c8923a07cc13a784db3fea8285466830308..4b71f7311e2a51323cb581481394fbf252b13a41 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))