From e45e0912d99335f4feec7f937180ea21f7f62a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= Date: Mon, 10 Feb 2020 19:19:44 +0100 Subject: [PATCH] s3-libads: use dns name to open a ldap session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Required for working certificate verification. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13124 Signed-off-by: Björn Baumbach Reviewed-by: Bjoern Jacke Autobuild-User(master): Björn Baumbach Autobuild-Date(master): Thu Mar 5 12:29:26 UTC 2020 on sn-devel-184 --- 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 a630c5a0345..01e10c1260c 100755 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -669,7 +669,7 @@ got_connection: /* Otherwise setup the TCP LDAP session */ - ads->ldap.ld = ldap_open_with_timeout(addr, + ads->ldap.ld = ldap_open_with_timeout(ads->config.ldap_server_name, &ads->ldap.ss, ads->ldap.port, lp_ldap_timeout()); if (ads->ldap.ld == NULL) {