[imp] Summary: Using ldap for auth and pref - competing ldap operations

Robert Kubarych rkubarych at bergen.edu
Wed Jan 29 13:33:10 PST 2003


Well, I was barking up the wrong tree here.  Ed Culp was kind enough to
point me in the right direction, and the problem was in my horde.php.
One of my ldap entries was $conf['prefs']['params']['uid'] = 'uid';
This caused the an attempt to bind to
uid=lsmith at stumail.bergen.edu,dc=stumail,dc=bergen,dc=edu
<mailto:uid=lsmith at stumail.bergen.edu,dc=stumail,dc=bergen,dc=edu>
which failed since it didn't agree with my ldap structure.  I was also
wrong that it successfully binded with this DN at other points (better
check my eye glass prescription).

 

Many thanks to Ed and the list.

 

Rob

 

*** portions of original post and Ed's reply
**************************************************

 

Quoting Robert Kubarych <rkubarych at bergen.edu>:

 

I'm having problems getting IMP to work when using ldap for both
preferences and authentication.  From my logs it appears to me that
there are some competing operations going on between authentications and
retrieving the preferences.  The horde log shows that at one point the
bind to the server with DN  |
uid=lsmith at stumail.bergen.edu,dc=stumail,dc=bergen,dc=edu fails, yet it
successfully binds with that DN at other points.  

  

Is anyone out there using ldap both for preferences and authentication
successfully or do I have something screwed up somewhere?  Any help
would be greatly appreciated.  Some output from my logs is pasted below.

 

Quoting Ed

 

I've osillated from one to the other.  Right now I'm using mysql for
prefs. I feel it is a better fit for the type of information that is
being stored. I can easily swith though and I did on my up to date head
machine and they work as expected in ldap.  BTW, I always use ldap for
authentication.

 

Some things to check:

horde/conf 

 

$conf['prefs']['driver'] = 'ldap';

$conf['prefs']['params'] = array(); $conf['prefs']['params']['hostspec']
= 'localhost'; $conf['prefs']['params']['port'] = '389';
$conf['prefs']['params']['basedn'] = 'ou=people,o=yourdomain.org';
$conf['prefs']['params']['uid'] = 'mail';

 

horde/scripts/ldap/horde.schema is up to date or has all your modules
and is correctly configured in slapd.conf.

 

If the above is true and I'm not forgetting something, it should work.

 

ed

 

 

Robert K. Kubarych

(201) 612-5591

 



More information about the imp mailing list