Hello,
I recently installed courier-imap and would like it to work with my
qmail-ldap setup. I have configured authdaemon to point to authldap and
I can see the authentication requests being processed. If I manually
telnet, and issue:
a login gary incorrect_password
I get a "a NO Login failed." response - as I would expect. However,
when I issue:
a login gary correct_password
my telnet session immediately closes with a "Connection to host lost."
I have the following in my log file:
Aug 14 15:21:24 debian authdaemond: received auth request, service=imap,
authtype=login Aug 14 15:21:24 debian authdaemond: authldap: trying this
module Aug 14 15:21:24 debian authdaemond: using search filter:
(uid=gary)
Aug 14 15:21:24 debian authdaemond: one entry returned, DN:
uid=gary,ou=accounts,dc=office,dc=surrealsolutions,dc=com
Aug 14 15:21:24 debian authdaemond: raw ldap entry returned:
Aug 14 15:21:24 debian authdaemond: | cn: Gary B Aug 14 15:21:24 debian
authdaemond: | uid: gary Aug 14 15:21:24 debian authdaemond: |
mailMessageStore: /var/qmail/maildirs/partitiondevelopment/gary/
Aug 14 15:21:24 debian authdaemond: | userPassword:{SHA}correct_pass Aug
14 15:21:24 debian authdaemond:
authldaplib: sysusername=<null>, sysuserid=11184, sysgroupid=2110,
homedir=/var/qmail/maildirs/partitiondevelopment/gary/, address=gary,
fullname=Gary B, maildir=<null>, quota=<null>, options=<null> Aug 14
15:21:24 debian authdaemond: authldaplib: clearpasswd=<null>,
passwd={SHA}correct_pass Aug 14 15:21:24 debian authdaemond: rebinding
with DN 'uid=gary,ou=accounts,dc=office,dc=surrealsolutions,dc=com' to
validate password Aug 14 15:21:24 debian authdaemond: authentication
bind successful Aug 14 15:21:24 debian authdaemond: Authenticated:
sysusername=<null>, sysuserid=11184, sysgroupid=2110,
homedir=/var/qmail/maildirs/partitiondevelopment/gary/, address=gary,
fullname=Gary B, maildir=<null>, quota=<null>, options=<null> Aug 14
15:21:24 debian authdaemond: Authenticated: clearpasswd=correct_pass,
passwd={SHA}correct_pass
Also, if I try "authtest gary", I get back the following:
debian:/etc/courier# authtest gary
Authentication succeeded.
Authenticated: gary (uid 11184, gid 2110) Home Directory:
/var/qmail/maildirs/partitiondevelopment/gary/
Maildir: (none)
Quota: (none)
Encrypted Password: {SHA}correct_pass
Cleartext Password: (none)
Options: (none)
I see that the Maildir value is empty, and I was thinking that this
could potentially be the reason for the immediately closed connection?
If it is, I need help in figuring out how to set it, as nothing that
I've tried seems to work. If this isn't the reason for the closed
connection, perhaps someone can point me in the right direction.
Thanks,
Gary
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap