LDAP_OPT_REFERRALS

This commit is contained in:
afornerot 2021-01-27 10:45:11 +01:00
parent e82d932cfb
commit 5dedf3b183
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class ldapService
if($ldapConn){ if($ldapConn){
ldap_set_option($ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ldapConn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldapConn, LDAP_OPT_REFERRALS, 0);
if($this->tls) ldap_start_tls($ldapConn); if($this->tls) ldap_start_tls($ldapConn);
if(ldap_bind( $ldapConn, $this->user, $this->password)){ if(ldap_bind( $ldapConn, $this->user, $this->password)){