Ldap connection to non standard port

port not used in ldap_connect
This commit is contained in:
Baji Zsolt 2019-05-29 17:24:48 +02:00 committed by GitHub
parent e6c5115d3f
commit f4618b7bfa
1 changed files with 1 additions and 1 deletions

View File

@ -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);