ldap_set_option should be called with a valid link identifier
This commit is contained in:
parent
2c1bb06e54
commit
7f891969c5
@ -109,11 +109,11 @@ class LdapClient implements LdapClientInterface
|
||||
$host = 'ldaps://'.$host;
|
||||
}
|
||||
|
||||
$this->connection = ldap_connect($host, $this->port);
|
||||
|
||||
ldap_set_option($this->connection, LDAP_OPT_PROTOCOL_VERSION, $this->version);
|
||||
ldap_set_option($this->connection, LDAP_OPT_REFERRALS, $this->optReferrals);
|
||||
|
||||
$this->connection = ldap_connect($host, $this->port);
|
||||
|
||||
if ($this->useStartTls) {
|
||||
ldap_start_tls($this->connection);
|
||||
}
|
||||
|
Reference in New Issue
Block a user