diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php index dd328d4d457dda1bbdd0ce4ddfbf9cfaaaad392f..523a2a397081af51911a1bfd86c1fb10651b3664 100644 --- a/inc/auth/ldap.class.php +++ b/inc/auth/ldap.class.php @@ -67,7 +67,7 @@ class auth_ldap extends auth_basic { $dn = $this->_makeFilter($this->cnf['binddn'], array('user'=>$user,'server'=>$this->cnf['server'])); - }else if(strpos($cnf['usertree'], '%{user}')) { + }else if(strpos($this->cnf['usertree'], '%{user}')) { // direct user bind $dn = $this->_makeFilter($this->cnf['usertree'], array('user'=>$user,'server'=>$this->cnf['server']));