[imp] "Notice: Undefined index: hordeprefs" error

Gonzalo Servat gonzalo@linuxaus.com
14 Jul 2002 21:42:48 +1000


---------------------- multipart/signed attachment
Hi again

It turns out that the problem was IMP incorrectly binding to LDAP.
It was trying to bind as "dn: $username,$basedn" which in some cases may
suit the LDAP tree structure but in my case this is incorrect.
The full dn of the user would be
$username,ou=3DDepartment,st=3Dstate,$basedn. (eg. dn:
uid=3Dfoo,ou=3DIT,st=3DNSW,o=3DCompany,c=3DAU is the full dn of user foo. I=
MP was
trying to bind as uid=3Dfoo,c=3DAU (c=3DAU being my basedn) which is
incorrect)

Apparently this is a known bug .. but what I don't know is if it has
been fixed yet? (maybe in CVS?)

For the time being I'm binding as rootdn (I hate specifying passwords in
plain text files though) but I'm hoping there is a fix for this problem
so I can bind as the user, not root.

Thanks in advance!

Regards,
Gonzalo.

On Wed, 2002-07-10 at 10:39, Gonzalo Servat wrote:
> Hi All.
>=20
> Versions: imp =3D 3.1, horde =3D 2.1, Apache =3D 1.3.26, PHP =3D 4.2.1
>=20
> I'm trying to setup Horde to use LDAP as the Prefs driver. I've added
> horde.schema to slapd.conf and it's loaded properly.
>=20
> When I try and login to the IMAP server, it says:
>=20
> Notice:  Undefined index:  hordeprefs in
> /var/www/htdocs/horde/lib/Prefs/ldap.php on line 323
> Warning:  Invalid argument supplied for foreach() in
> /var/www/htdocs/horde/lib/Prefs/ldap.php on line 329
> Warning:  LDAP: modify operation could not be completed. in
> /var/www/htdocs/horde/lib/Prefs/ldap.php on line 415
> Warning:  Cannot add header information - headers already sent by
> (output started at /var/www/htdocs/horde/lib/Prefs/ldap.php:323) in
> /var/www/htdocs/horde/imp/redirect.php on line 84
>=20
> Strange thing is, if I press F5, it will then take me to the Inbox for
> that user without any errors.
>=20
> When logging out, I get:
>=20
> Warning:  LDAP: modify operation could not be completed. in
> /var/www/htdocs/horde/lib/Prefs/ldap.php on line 415
>=20
> The relevant parts of horde.php:
>=20
> $conf['auth']['driver'] =3D 'ldap';
> $conf['auth']['params'] =3D array();
> $conf['auth']['params']['hostspec'] =3D 'ldapserver';
> $conf['auth']['params']['port'] =3D '389';
> $conf['auth']['params']['basedn'] =3D 'c=3DAU';
> $conf['auth']['params']['uid'] =3D 'uid';
>=20
> $conf['prefs']['driver'] =3D 'ldap';
> $conf['prefs']['params'] =3D array();
> $conf['prefs']['params']['hostspec'] =3D 'ldapserver';
> $conf['prefs']['params']['port'] =3D '389';
> $conf['prefs']['params']['basedn'] =3D 'c=3DAU';
> $conf['prefs']['params']['uid'] =3D 'uid';
>=20
> Any help would be greatly appreciated.
>=20
> Regards,
>=20
> Gonzalo.
>=20
>=20
> --=20
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>=20


---------------------- multipart/signed attachment
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.horde.org/archives/imp/attachments/930de4cb/attachment.bin

---------------------- multipart/signed attachment--