From: Björn Baumbach Date: Mon, 10 Feb 2020 18:19:44 +0000 (+0100) Subject: s3-libads: use dns name to open a ldap session X-Git-Tag: ldb-2.2.0~1516 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e45e0912d99335f4feec7f937180ea21f7f62a72;p=thirdparty%2Fsamba.git s3-libads: use dns name to open a ldap session 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 --- 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) {