summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorBjoern Baumbach <bb@sernet.de>2014-03-10 13:59:15 +0100
committerGünther Deschner <gd@samba.org>2014-03-13 17:06:00 +0100
commit2b44c85c7b322b392c8d3d0f393171ca54bb5f47 (patch)
treebc1e347a8d515df463e0661d6e594cb88c0a3fc2 /source3/libads
parent6030fac3d15ad851b8786509c402c68f12dfd653 (diff)
downloadsamba-2b44c85c7b322b392c8d3d0f393171ca54bb5f47.tar.gz
s3-libads: Use the IP instead of the name.
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
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c2
1 files changed, 1 insertions, 1 deletions
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) {