From 2b44c85c7b322b392c8d3d0f393171ca54bb5f47 Mon Sep 17 00:00:00 2001 From: Bjoern Baumbach Date: Mon, 10 Mar 2014 13:59:15 +0100 Subject: [PATCH] s3-libads: Use the IP instead of the name. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thix fixes 'net rpc join' against ADS. Signed-off-by: Bjoern Baumbach Reviewed-by: Andreas Schneider Reviewed-by: Guenther Deschner Autobuild-User(master): Günther Deschner Autobuild-Date(master): Thu Mar 13 17:06:00 CET 2014 on sn-devel-104 --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 10ac8fc334d..f0f9d4c63a1 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -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) { -- 2.34.1