[horde] latest cvs requires ldap rootdn?
Joe Cave
Joe at tendocom.com
Wed Mar 19 15:54:32 PST 2003
hi list,
just did clean cvs download of horde and on login i get the following:
A fatal error has occurred:
Required 'rootdn' not specified in preferences configuration.
[line 130 of /usr/local/apache/htdocs/mail/horde/lib/Prefs/ldap.php]
Details have been logged for the administrator.
so i look at the ldap.php the mentioned section:
$required = array('hostspec', 'basedn', 'uid', 'username', 'rootdn',
'password');
foreach ($required as $val) {
if (!isset($this->params[$val])) {
Horde::fatal(PEAR::raiseError(sprintf(_("Required '%s' not specified in preferences configuration."), $val)), __FILE__, __LINE__);
and i'm not sure why its requiring the rootdn? previously i had each user able to manage their own ldap entry and could leave the rootdn commented out. if i configure the rootdn section of horde conf.php i login fine but i'd rather not have it set up like this. i haven't changed my ldap perms so maybe someone can help me figure out/explain why this is happening?
here's the relevant section of my horde conf.php:
// This is an example configuration for an LDAP preference backend.
// The schemas needed for ldap are in horde/scripts/ldap. For more
// information see sources and comments in horde/lib/Prefs/ldap.php.
$conf['prefs']['driver'] = 'ldap';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['port'] = '389';
$conf['prefs']['params']['basedn'] = 'ou=accounts,dc=ld,dc=dir';
$conf['prefs']['params']['uid'] = 'uid';
/*
* The following is valid but would only be necessary if users
* do NOT have permission to modify their own ldap accounts.
*/
//$conf['prefs']['params']['rootdn'] = 'cn=Manager,dc=ld,dc=dir';
//$conf['prefs']['params']['username'] = 'Manager';
//$conf['prefs']['params']['password'] = 'password';
here's my ldap perms:
defaultaccess none
access to * attr=userPassword,cn,sn,givenName,hordePrefs,impPrefs,turbaPrefs
by self write
by * auth
access to *
by dn="cn=Manager,dc=ld,dc=dir" write
by self read
by * auth
# private addy book perms
access to dn="ou=(.+),ou=personal_addressbook,dc=ld,dc=dir"
by dn="uid=$1,dc=ld,dc=dir" write
by anonymous auth
by * none
like i said, i haven't changed my ldap config at all and horde/prefs used to work fine. the only thing i've done is update horde today. any help is appreciated. thx.
- j
More information about the horde
mailing list