s3-libads: Use the IP instead of the name.
authorBjoern Baumbach <bb@sernet.de>
Mon, 10 Mar 2014 12:59:15 +0000 (13:59 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Mar 2014 16:06:00 +0000 (17:06 +0100)
Thix fixes 'net rpc join' against ADS.

Signed-off-by: Bjoern Baumbach <bb@sernet.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Mar 13 17:06:00 CET 2014 on sn-devel-104

source3/libads/ldap.c

index 10ac8fc334dc77526392b91971942b3202e4bb9b..f0f9d4c63a16a3010d0f149e7a2a07a77e99a288 100644 (file)
@@ -710,7 +710,7 @@ got_connection:
 
        /* Otherwise setup the TCP LDAP session */
 
-       ads->ldap.ld = ldap_open_with_timeout(ads->config.ldap_server_name,
+       ads->ldap.ld = ldap_open_with_timeout(addr,
                                              &ads->ldap.ss,
                                              ads->ldap.port, lp_ldap_timeout());
        if (ads->ldap.ld == NULL) {