13 messages in net.sourceforge.lists.courier-users[courier-users] Authldap Authenticati...
FromSent OnAttachments
SK LimApr 8, 2003 4:43 am 
Keith MatthewsApr 8, 2003 10:39 am 
SK LimApr 16, 2003 7:49 pm 
SK LimApr 16, 2003 8:32 pm 
SK LimApr 17, 2003 10:34 pm 
Sam VarshavchikApr 18, 2003 6:41 am 
Brian CandlerApr 21, 2003 2:20 am 
SK LimApr 21, 2003 7:29 pm 
Boris GoldowskyApr 28, 2003 9:57 am 
Sam VarshavchikApr 28, 2003 1:05 pm 
Boris GoldowskyApr 28, 2003 5:36 pm 
Jerry AmundsonApr 28, 2003 7:18 pm 
Boris GoldowskyApr 29, 2003 7:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Authldap Authentication FailedActions...
From:SK Lim (shan@pc.jaring.my)
Date:Apr 8, 2003 4:43:40 am
List:net.sourceforge.lists.courier-users

Hello,

I am trying to setup a Qmail+LDAP patch, Courier-IMAP(1.7.x) and OpenLDAP system, but unsuccessful. I hving problem of get Courier's authldap working with OpenLDAP's directory entry.

OS: RedHat 8.0

OpenLDAP RPM Installation (RedHat CD-ROM)

openldap-2.0.25-1 openldap-devel-2.0.25-1 openldap-server-2.0.25-1 openldap-clients-2.0.25-1

I check the location of the ldap libraries and header files by rpm -ql openldap-devel-2.025-1, and they are in /usr/lib, /usr/include, /lib

Courier's compilation (non-root user) ./configure make make check su root unmask 022 make install make install-configure

Did not use 'options' on the configure script, since the ldap libraries and headers files are in default directories, where C compiler would be able to locate them.

Courier's imapd config Most of them are default settings except the following: AUTHMODULES="authdaemon authldap"

Courier's authdaemonrc config Most of them default are setting except the following: authmodulelist="authldap"

Courier's authldaprc Most of them default settings except the following: LDAP_SERVER localhost LDAP_PORT 389 LDAP_BASEDN dc=mfocus,dc=net LDAP_BINDDN cn=courier,dc=mfocus,dc=net LDAP_BINDPW couriersecret LDAP_TIMEOUT 5 LDAP_AUTHBIND 0 LDAP_MAIL mail LDAP_DOMAIN mfocus.net LDAP_GLOB_UID vmail LDAP_GLOB_GID vmail LDAP_HOMEDIR mailMessageStore LDAP_MAILDIR mailMessageStore LDAP_FULLNAME cn LDAP_CRYPTPW userPassword #LDAP_CLEARPW userPassword

# OpenLDAP access control list(sladp.conf) access to attr=userPassword by dn="cn=Manager,dc=mfocus,dc=net" write by dn="cn=courier,dc=mfocus,dc=net" read by dn="cn=qmail,dc=mfocus,dc=net" read by self write by * auth access to * by dn="cn=Manager,dc=mfocus,dc=net" write by dn="cn=courier,dc=mfocus,dc=net" read by dn="cn=qmail,dc=mfocus,dc=net" read by self read by anonymous read

# Ldap search (verify the database is accessible)

ldapsearch -x -b "dc=mfocus.net,dc=net" -D "cn=courier,dc=mfocus,dc=net" -W "(&(objectclass=qmailuser)(uid=jerry))" Enter LDAP password: couriersecret

Results: # jerry, accounts, mfocus, net dn: uid=jerry, ou=accounts, dc=mfocus, dc=net cn: Jerry sn: Chong objectclass: top objectclass: person objectclass: inetOrgPerson objectclass: qmailUser mail: jer@mfocus.net mailHost: mfocus.net mailMessageStore: /var/qmail/maildirs/jerry/Maildirs uid: jerry accountStatus: enable UserPassword:: eInx8934cd.....

IMAP authentication test

telnet 0 143 Connected to 0. Escape character is '^]' *OK [Capabilitiy IMAP4rev1 UIDPLUS....]Courier-IMAP ready. Copywrite.... a1 login jerry jerry01 a1 NO Login fail

Could anyone help me please, thank you in advance

Disclaimer:-