2006-03-27
smachaje
When the following variables are defined the ldap connection fails:
$conf['auth']['ldap']['server'] = 'ldap.domain.com;
$conf['auth']['ldap']['usertree'] = 'cn=%{user}, ou=container, o=main';
$conf['auth']['ldap']['port'] = '389';
/* novell specific, not required to reproduce the bug */
$conf['auth']['ldap']['mapping']['name'] = 'fullname';
$conf['auth']['ldap']['mapping']['grps'] = array('groupmembership'=>'/cn=(.+?),/i');
File:
inc/auth/ldap.class.php:
line 70:
}else if(strpos($cnf['usertree'], '%{user}')) {
should be:
}else if(strpos($this->cnf['usertree'], '%{user}')) {