mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
crashreport, ldap_set_option(): supplied argument is not a valid ldap link resource in /usr/local/opnsense/mvc/app/library/OPNsense/Auth/LDAP.php on line 213
This commit is contained in:
parent
ba9a7eca13
commit
f6301ca7b7
@ -210,9 +210,9 @@ class LDAP implements IAuthConnector
|
||||
{
|
||||
$this->closeLDAPHandle();
|
||||
$this->ldapHandle = @ldap_connect($bind_url);
|
||||
ldap_set_option($this->ldapHandle, LDAP_OPT_NETWORK_TIMEOUT, $timeout);
|
||||
|
||||
if ($this->ldapHandle !== false) {
|
||||
ldap_set_option($this->ldapHandle, LDAP_OPT_NETWORK_TIMEOUT, $timeout);
|
||||
ldap_set_option($this->ldapHandle, LDAP_OPT_REFERRALS, 0);
|
||||
ldap_set_option($this->ldapHandle, LDAP_OPT_DEREF, LDAP_DEREF_SEARCHING);
|
||||
ldap_set_option($this->ldapHandle, LDAP_OPT_PROTOCOL_VERSION, (int)$this->ldapVersion);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user