mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Merge pull request #4220 from bajizs/patch-1
Ldap connection to non standard port
This commit is contained in:
@@ -41,7 +41,7 @@ class plugin_ldap {
|
|||||||
}
|
}
|
||||||
$host = $_SESSION["ldap"]["server_host"]["text"];
|
$host = $_SESSION["ldap"]["server_host"]["text"];
|
||||||
$port = $_SESSION["ldap"]["server_port"]["numeric"];
|
$port = $_SESSION["ldap"]["server_port"]["numeric"];
|
||||||
$connect = ldap_connect($host)
|
$connect = ldap_connect($host,$port)
|
||||||
or die("Could not connect to the LDAP server.");
|
or die("Could not connect to the LDAP server.");
|
||||||
//ldap_set_option($connect, LDAP_OPT_NETWORK_TIMEOUT, 10);
|
//ldap_set_option($connect, LDAP_OPT_NETWORK_TIMEOUT, 10);
|
||||||
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
|
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user