I still can't get the 20041103 release working with LDAP Authentication.
This is all on my test box which I installed 0.47 on, configured it for
LDAP Auth identical to my production box and then compiled and installed
the 20041103 test release on. /var/maildir and all subfolders are owned
by vmail.vmail which is a real user/group on the server as confirmed in
/etc/passwd and /etc/group. Here's what maillog says with debug=2:
imapd: Connection, ip=[::ffff:127.0.0.1]
authdaemond: received auth request, service=imap, authtype=login
authdaemond: authldap: trying this module
authdaemond: selected ldap protocol version 3
authdaemond: binding to LDAP server as DN '<null>', password '<null>'
authdaemond: using search filter: (uid=it_staff)
authdaemond: one entry returned, DN: cn=IT_STAFF,ou=LMC,o=PCB
authdaemond: raw ldap entry returned:
authdaemond: | uid: IT_STAFF
authdaemond: | cn: IT_STAFF
authdaemond: authldaplib: sysusername=, sysuserid=501, sysgroupid=501,
homedir=/var/maildir/IT_STAFF, address=it_staff, fullname=IT_STAFF,
maildir=<null>, quota=<null>, options=<null>
authdaemond: authldaplib: clearpasswd=<null>, passwd=<null>
authdaemond: rebinding with DN 'cn=IT_STAFF,ou=LMC,o=PCB' to validate
password
authdaemond: authentication bind successful
authdaemond: Authenticated: sysusername=, sysuserid=501, sysgroupid=501,
homedir=/var/maildir/IT_STAFF, address=it_staff, fullname=IT_STAFF,
maildir=<null>, quota=<null>, options=<null>
authdaemond: Authenticated: clearpasswd=xxxxx, passwd=<null>
imapd: getpwnam: Success
Here's what I've got in /etc/authlib/authldaprc:
LDAP_SERVER 10.1.1.13 10.1.1.14
LDAP_PORT 389
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN o=PCB
LDAP_TIMEOUT 5
LDAP_AUTHBIND 1
LDAP_MAIL uid
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vmail
LDAP_HOMEDIR uid
LDAP_MAILROOT /var/maildir
LDAP_FULLNAME fullname
LDAP_CLEARPW clearPassword
LDAP_CRYPTPW userPassword
I realise this is somewhat non-standard but it's worked quite well. Our
LDAP server is a Netware 6 machine running eDirectory (NDS). Last but not
least, here's what authtest returns:
# authtest it_staff
Authentication succeeded.
Authenticated: it_staff (system username: )
Home Directory: /var/maildir/IT_STAFF
Maildir: (none)
Quota: (none)
Encrypted Password: (none)
Cleartext Password: (none)
Options: (none)
# authtest it_staff xxxxx
Authentication succeeded.
Authenticated: it_staff (system username: )
Home Directory: /var/maildir/IT_STAFF
Maildir: (none)
Quota: (none)
Encrypted Password: (none)
Cleartext Password: xxxxx
Options: (none)
Any suggestions?
Jay
--
Jay Lee
Network / Systems Administrator
Information Technology Dept.
Philadelphia Biblical University
--
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users