[squid-users] LDAP authentication with courier-imap

From: Stephen <sdw@dont-contact.us>
Date: Fri, 24 May 2002 09:56:59 +1200

Hi all,

I'm not able to authenticate a courier-imap account against my openldap
server.

When I run Openldap in debug mode, courier-imap is not even contacting
the ldap server.
The courier-imap FAQ has a note "I have OpenLDAP, or OpenSSL, or MySQL
installed, but Courier-IMAP does not see it " and I guess this is the
problem.
So the question is, how can I check if the RPMs have compiled without
LDAP since I do have the openldap "devel" RPM loaded? Alternatively, is
there some way of looking at debug output from courier-imap?
Anything else to check?

Much appreciated
Stephen

Notes:
System is RedHat 7.3 - brand new setup.
Courier -imap installed from an RPM built myself using a local account
as per the FAQ, i.e. create RPM structure in local account and then rpm
-ta courier-imap-xxx.tar.gz with local user
The ldap server has read access and is verifiably working (e.g. squid
authenticates against it)

[root@fred root]# rpm -qa | grep openldap
openldap-servers-2.0.23-4
openldap-2.0.23-4
openldap-devel-2.0.23-4
openldap-clients-2.0.23-4
[root@fred root]# rpm -qa | grep courier
courier-imap-1.4.5-1.7.3
courier-imap-ldap-1.4.5-1.7.3

cat /usr/lib/courier-imap/etc/authldaprc
<snip>
LDAP_SERVER 192.168.0.2
LDAP_PORT 389

[root@fred root]# ps axuw | grep authdaemon
root 6128 0.0 0.2 1752 668 ? S 09:11 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.ldap start
root 6128 0.0 0.2 1752 668 ? S 09:11 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.ldap start
root 6128 0.0 0.2 1752 668 ? S 09:11 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.ldap start
root 6128 0.0 0.2 1752 668 ? S 09:11 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.ldap start
root 6128 0.0 0.2 1752 668 ? S 09:11 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.ldap start
root 6128 0.0 0.2 1752 668 ? S 09:11 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond.ldap start
Received on Thu May 23 2002 - 15:57:07 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:12 MST