Hi,

I have 2 machines - one testing and one real server, both running FreeBSD 
7. Basically I use the testing machine to test the configuration for the 
server machine before doing an upgrade on it.

I got the courier imapd correctly working on the testing machine but it 
doesn't work on the server and I have no clue why. 
Both machines run courier-authlib-base-0.61.0, 
courier-authlib-ldap-0.61.0, courier-imap-4.3.1,2 +openldap-server-2.4.11 
Both authenticate against the same LDAP server (running on the server 
machine).
When I turn on debugging on in /usr/local/etc/authdaemonrc I get this on 
the testing machine:

Sep 18 09:12:48 euczprgmkes1 imapd: Connection, ip=[::ffff:10.70.137.123]
Sep 18 09:12:55 euczprgmkes1 authdaemond: received auth request, 
service=imap, authtype=login
Sep 18 09:12:55 euczprgmkes1 authdaemond: authldap: trying this module
Sep 18 09:12:55 euczprgmkes1 authdaemond: selected ldap protocol version 3
Sep 18 09:12:55 euczprgmkes1 authdaemond: binding to LDAP server as DN 
'<null>', password '<null>'
Sep 18 09:12:55 euczprgmkes1 authdaemond: using search filter: (uid=mkes)
Sep 18 09:12:55 euczprgmkes1 authdaemond: one entry returned, DN: 
uid=mkes,ou=Accounts,ou=CZ-R&D,dc=emea,dc=home,dc=ra-int,dc=com
Sep 18 09:12:55 euczprgmkes1 authdaemond: raw ldap entry returned:
Sep 18 09:12:55 euczprgmkes1 authdaemond: | uidNumber: 1000
Sep 18 09:12:55 euczprgmkes1 authdaemond: | gidNumber: 100
Sep 18 09:12:55 euczprgmkes1 authdaemond: | homeDirectory: /home/mkes
Sep 18 09:12:55 euczprgmkes1 authdaemond: | uid: mkes
Sep 18 09:12:55 euczprgmkes1 authdaemond: | cn: Miroslav Kes
Sep 18 09:12:55 euczprgmkes1 authdaemond: authldaplib: sysusername=<null>, 
sysuserid=1000, sysgroupid=100, homedir=/home/mkes, address=mkes, 
fullname=Miroslav Kes, maildir=<null>, quota=<null>, options=<null>
Sep 18 09:12:55 euczprgmkes1 authdaemond: authldaplib: clearpasswd=<null>, 
passwd=<null>
Sep 18 09:12:55 euczprgmkes1 authdaemond: rebinding with DN 
'uid=mkes,ou=Accounts,ou=CZ-R&D,dc=emea,dc=home,dc=ra-int,dc=com' to 
validate password
Sep 18 09:12:55 euczprgmkes1 authdaemond: authentication bind successful
Sep 18 09:12:55 euczprgmkes1 authdaemond: Authenticated: 
sysusername=<null>, sysuserid=1000, sysgroupid=100, homedir=/home/mkes, 
address=mkes, fullname=Miroslav Kes, maildir=<null>, quota=<null>, 
options=<null>
Sep 18 09:12:55 euczprgmkes1 authdaemond: Authenticated: 
clearpasswd=Ga110Cieg0, passwd=<null>
Sep 18 09:12:55 euczprgmkes1 imapd: LOGIN, user=mkes, 
ip=[::ffff:10.70.137.123], port=[54235], protocol=IMAP

but this on the server machine:

Sep 18 10:35:02 euczprgmult004 imapd: Connection, 
ip=[::ffff:10.70.137.123]
Sep 18 10:35:02 euczprgmult004 imapd: LOGIN: ip=[::ffff:10.70.137.123], 
command=CAPABILITY
Sep 18 10:35:08 euczprgmult004 imapd: LOGIN: ip=[::ffff:10.70.137.123], 
command=LOGIN
Sep 18 10:35:08 euczprgmult004 imapd: LOGIN: ip=[::ffff:10.70.137.123], 
username=mkes
Sep 18 10:35:08 euczprgmult004 imapd: LOGIN: ip=[::ffff:10.70.137.123], 
password=Ga110Cieg0
Sep 18 10:35:08 euczprgmult004 authdaemond: received auth request, 
service=imap, authtype=login
Sep 18 10:35:08 euczprgmult004 authdaemond: authldap: trying this module
Sep 18 10:35:08 euczprgmult004 authdaemond: selected ldap protocol version 
3
Sep 18 10:35:08 euczprgmult004 authdaemond: binding to LDAP server as DN 
'<null>', password '<null>'
Sep 18 10:35:08 euczprgmult004 authdaemond: using search filter: 
(uid=mkes)
Sep 18 10:35:08 euczprgmult004 authdaemond: one entry returned, DN: 
uid=mkes,ou=Accounts,ou=CZ-R&D,dc=emea,dc=home,dc=ra-int,dc=com
Sep 18 10:35:08 euczprgmult004 authdaemond: raw ldap entry returned:
Sep 18 10:35:08 euczprgmult004 authdaemond: | uidNumber: 1000
Sep 18 10:35:08 euczprgmult004 authdaemond: | gidNumber: 100
Sep 18 10:35:08 euczprgmult004 authdaemond: | homeDirectory: /home/mkes
Sep 18 10:35:08 euczprgmult004 authdaemond: | uid: mkes
Sep 18 10:35:08 euczprgmult004 authdaemond: | cn: Miroslav Kes
Sep 18 10:35:08 euczprgmult004 authdaemond: authldaplib: 
sysusername=<null>, sysuserid=1000, sysgroupid=100, homedir=/home/mkes, 
address=mkes, fullname=Miroslav Kes, maildir=<null>, quota=<null>, 
options=<null>
Sep 18 10:35:08 euczprgmult004 authdaemond: authldaplib: 
clearpasswd=<null>, passwd=<null>
Sep 18 10:35:08 euczprgmult004 authdaemond: rebinding with DN 
'uid=mkes,ou=Accounts,ou=CZ-R&D,dc=emea,dc=home,dc=ra-int,dc=com' to 
validate password
Sep 18 10:35:08 euczprgmult004 authdaemond: authentication bind successful
Sep 18 10:35:08 euczprgmult004 authdaemond: Authenticated: 
sysusername=<null>, sysuserid=1000, sysgroupid=100, homedir=/home/mkes, 
address=mkes, fullname=Miroslav Kes, maildir=<null>, quota=<null>, 
options=<null>
Sep 18 10:35:08 euczprgmult004 authdaemond: Authenticated: 
clearpasswd=Ga110Cieg0, passwd=<null>

I don't know if I interpret it correctly but it seems to me that the 
authentication is OK on both but, then, for some reason, the imapd doesn't 
get that information on the server machine. But the imapd is runnign on 
both.

Any idea where to look for the problem would be welcome. :-)

Mira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to