1
0
mirror of https://bitbucket.org/jsuto/piler.git synced 2025-04-09 19:16:03 +02:00

added a do not follow referrals ldap option

This commit is contained in:
SJ 2012-08-17 11:55:44 +02:00
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;