Peter Rendle writes:
I have just installed Courier IMAP 1.3.8.1 and I am having some problems getting
LDAP authentication to work.
The LDAP directory seems fine and successfuly authenticates FTP clients ( using
Proftpd )
I am only using the pop3d and I cannot see what is going wrong.
In /var/log/maillog I get the following:
Jun 5 16:27:34 test1 pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 5 16:27:51 test1 pop3d: LOGIN FAILED, ip=[::ffff:127.0.0.1]
Jun 5 16:27:55 test1 pop3d: Disconnected, ip=[::ffff:127.0.0.1]
I get a bit of a pause between entering the password and it rejecting the login.
( Exactly the same pause as when LDAP is not running. )
All the correct daemons are started ( authdaemond.ldap, openldap etc) and I can
successfully deliver mail to a test maildir using Exim.
Can anyone help by either telling me what is wrong or how to get some more
information out of courier as to why the authentication is failing.
Many Thanks
Peter Rendle
Some Configuration Stuff:
Redhat 7.1
OpenLDAP ver 1.2.11
My authldaprc file has the following entries:
LDAP_SERVER localhost
LDAP_PORT 389
LDAP_BASEDN ou=virtual, dc=mydomain, dc=net
LDAP_BINDDN cn=admin, dc=mydomain, dc=net
LDAP_BINDPW xxxxxxxxx
LDAP_TIMEOUT 5
LDAP_MAIL mail
LDAP_DOMAIN mydomain.net
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vhost
LDAP_HOMEDIR homedirectory
LDAP_MAILDIR maildir
LDAP_FULLNAME cn
LDAP_CRYPTPW userpassword
[root@test1 etc]# ldapsearch -b ou=virtual,dc=mydomain,dc=net
'(cn=testdomain.co.uk)'
uid=testdomain.co.uk,ou=virtual,dc=mydomain,dc=net
mail=post...@testdomain.co.uk
homedirectory=/home/virtual/testdomain.co.uk
uid=testdomain.co.uk
cn=testdomain.co.uk
maildir=./maildir
.
.
userpassword={crypt}K6KAdU3qrtiMg
maildir should probably be ./Maildir
You should be logging in as 'post...@testdomain.co.uk', not 'postmaster'.
Use the authlib/authtest tool to troubleshoot authentication.