[horde] LDAP authentication problems on debian lenny
Volker Then
horde40 at volkerthen.com
Mon May 9 08:31:24 UTC 2011
Hi all,
I'm trying to configure LDAP authentication in Horde 4.0.2 on a Debian
lenny machine (slapd version 2.4.11). I'm using the same configuration
as in a working Horde 3.3 installation. Saving the configuration,
gives a PHP Error in syslog:
HORDE PHP ERROR: Undefined variable: config [pid 22813 on line 65 of
"/usr/share/php/Horde/Core/Factory/Ldap.php"]
LDAP authentication doesn't work then:
HORDE: HORDE [horde] Bad search filter Parameters: Base:
ou=Users,dc=*******,dc=de Filter: (&(objectclass=)(=[username]))
Scope: sub [pid 19422 on line 837 of "/usr/share/php/Horde/Ldap.php"]
See below my Horde 3 and Horde 4 configuration. I could not reproduce
this problem on a Debian Squeeze installation, where everything worked
fine.
Horde 4.0.2 Conf File (not working)
$conf['ldap']['hostspec'] = 'localhost';
$conf['ldap']['tls'] = false;
$conf['ldap']['version'] = 3;
$conf['ldap']['binddn'] = 'cn=admin,dc=*******,dc=de';
$conf['ldap']['bindpw'] = '**********';
$conf['ldap']['bindas'] = 'admin';
$conf['ldap']['useldap'] = true;
$conf['auth']['params']['basedn'] = 'ou=Users,dc=*******,dc=de';
$conf['auth']['params']['scope'] = 'sub';
$conf['auth']['params']['ad'] = false;
$conf['auth']['params']['uid'] = 'uid';
$conf['auth']['params']['encryption'] = 'ssha';
$conf['auth']['params']['newuser_objectclass'] =
array('shadowAccount', 'inetOrgPerson');
$conf['auth']['params']['filter'] = '(objectclass=posixAccount)';
Horde 3.3 Conf File (working)
$conf['auth']['params']['hostspec'] = 'localhost';
$conf['auth']['params']['basedn'] = 'ou=Users,dc=*******,dc=de';
$conf['auth']['params']['binddn'] = 'cn=admin,dc=*******,dc=de';
$conf['auth']['params']['password'] = '**********';
$conf['auth']['params']['version'] = '3';
$conf['auth']['params']['tls'] = false;
$conf['auth']['params']['scope'] = 'sub';
$conf['auth']['params']['ad'] = false;
$conf['auth']['params']['uid'] = 'uid';
$conf['auth']['params']['encryption'] = 'md5-hex';
$conf['auth']['params']['newuser_objectclass'] =
array('shadowAccount', 'inetOrgPerson');
$conf['auth']['params']['objectclass'] = array('posixAccount');
$conf['auth']['params']['filter_type'] = 'objectclass';
Regards,
Volker
More information about the horde
mailing list