mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:30:13 +01:00
added a do not follow referrals ldap option
This commit is contained in:
parent
a44018e89e
commit
4a97a90934
@ -10,6 +10,7 @@ class LDAP {
|
|||||||
|
|
||||||
$this->link = ldap_connect($ldaphost) or exit('Error: ldap_connect()');
|
$this->link = ldap_connect($ldaphost) or exit('Error: ldap_connect()');
|
||||||
ldap_set_option($this->link, LDAP_OPT_PROTOCOL_VERSION, 3);
|
ldap_set_option($this->link, LDAP_OPT_PROTOCOL_VERSION, 3);
|
||||||
|
ldap_set_option($this->link, LDAP_OPT_REFERRALS, 0);
|
||||||
|
|
||||||
if(@ldap_bind($this->link, $binddn, $bindpw)) {
|
if(@ldap_bind($this->link, $binddn, $bindpw)) {
|
||||||
$this->bind = 1;
|
$this->bind = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user