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

View File

@ -10,6 +10,7 @@ class LDAP {
$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_REFERRALS, 0);
if(@ldap_bind($this->link, $binddn, $bindpw)) {
$this->bind = 1;