Hello,
I've installed courier-imap-4.3.1 and courier-authlib-0.60.6 on my linux box.
I'm running LDAP server and qmail too.
How to get the salt MD5 password stored in LDAP working with authldap ?
1) The authentication is successfull whithout password:
-------------------------------------------------------------------------------
mail> authtest benarson.behajaina
Authentication succeeded.
Authenticated: benarson.behajaina (uid 89, gid 89)
Home Directory: /home/vpopmail/domains/my.domain/benarson.behajaina
Maildir: (none)
Quota: (none)
Encrypted Password: {MD5}$1$vQjQZUcX$jATmvj1Ow2d2yAN5RDHH3.
Cleartext Password: (none)
Options: disableimap=0
2) but once I tried it with my right password, it failed:
------------------------------------------------------------------------
mail> authtest benarson.behajaina test
Authentication FAILED: Operation not permitted
3) and from my maillog:
------------------------------
[EMAIL PROTECTED] log]# tail -f maillog
Jul 10 17:20:57 mail authdaemond: received auth request, service=login,
authtype=login
Jul 10 17:20:57 mail authdaemond: authldap: trying this module
Jul 10 17:20:57 mail authdaemond: selected ldap protocol version 3
Jul 10 17:20:57 mail authdaemond: binding to LDAP server as DN '<null>'
Jul 10 17:20:57 mail authdaemond: using search filter: (uid=benarson.behajaina)
Jul 10 17:20:57 mail authdaemond: one entry returned, DN:
uid=benarson.behajaina, ou=mydomain ,o=vpopmail
Jul 10 17:20:57 mail authdaemond: authldaplib: sysusername=<null>,
sysuserid=89, sysgroupid=89,
homedir=/home/vpopmail/domains/mydomain/benarson.behajaina,
address=benarson.behajaina, fullname=benarson.behajaina, maildir=<null>,
quota=<null>, options=<null>
Jul 10 17:20:57 mail authdaemond: supplied password does not match encrypted
password
Jul 10 17:20:57 mail authdaemond: authldap: REJECT - try next module
Jul 10 17:20:57 mail authdaemond: FAIL, all modules rejected
My question is: does courier-Imap work with the authldap authentication ?
I've tried to replace the salt MD5 password to {crypt} in LDAP, and it worked.
Here below is my configurations:
----------------------------------------------
/usr/local/etc/authlib/authdaemonrc
--------------------------------------------------
authmodulelist="authldap"
authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom
authvchkpw authpipe"
daemons=5
authdaemonvar=/usr/local/var/spool/authdaemon
DEBUG_LOGIN=1
DEFAULTOPTIONS="disableimap=0"
LOGGEROPTS=""
/usr/local/etc/authlib/authldaprc
---------------------------------------------
LDAP_SERVER 192.168.xxx.xx
LDAP_PORT 389
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN o=vpopmail
LDAP_TIMEOUT 5
LDAP_MAIL uid
LDAP_FILTER (objectClass=qmailUser)
LDAP_GLOB_UID 89
LDAP_GLOB_GID 89
LDAP_HOMEDIR mailMessageStore
LDAP_MAILDIRQUOTA mailQuota
LDAP_FULLNAME uid
LDAP_CRYPTPW userPassword
LDAP_DEREF never
LDAP_TLS 0
/usr/lib/courier-imap/etc/imapd
--------------------------------------------
ADDRESS=0
PORT=143
MAXDAEMONS=40
MAXPERIP=4
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=imapd"
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE"
IMAP_KEYWORDS=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1
AUTH=CRAM-SHA256 IDLE"
IMAP_PROXY=0
IMAP_PROXY_FOREIGN=0
IMAP_IDLE_TIMEOUT=60
IMAP_MAILBOX_SANITY_CHECK=1
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_UMASK=022
IMAP_ULIMITD=65536
IMAP_USELOCKS=1
IMAP_SHAREDINDEXFILE=/usr/lib/courier-imap/etc/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=1
OUTBOX=.Outbox
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=YES
MAILDIRPATH=Maildir
Any help would be appreciated,
thanks,
Benarson
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap