From fcef1570e3ae7aa2bb9ecb29d5772dbb474fd12e Mon Sep 17 00:00:00 2001 From: Baji Zsolt Date: Wed, 29 May 2019 17:24:48 +0200 Subject: [PATCH] Ldap connection to non standard port port not used in ldap_connect --- core/authentication/resources/classes/plugins/ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/plugins/ldap.php b/core/authentication/resources/classes/plugins/ldap.php index c459c9ab04..a773ba3c3d 100644 --- a/core/authentication/resources/classes/plugins/ldap.php +++ b/core/authentication/resources/classes/plugins/ldap.php @@ -41,7 +41,7 @@ class plugin_ldap { } $host = $_SESSION["ldap"]["server_host"]["text"]; $port = $_SESSION["ldap"]["server_port"]["numeric"]; - $connect = ldap_connect($host) + $connect = ldap_connect($host,$port) or die("Could not connect to the LDAP server."); //ldap_set_option($connect, LDAP_OPT_NETWORK_TIMEOUT, 10); ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);