Hello All,
 
 
I'm using courier-imap-1.7.1 with openldap-2.0.27 and have one problem about LDAP Authentication with MD5 password.
When I used clear text password like "userPassword: ning123", it can successfully authenticated but If I used md5 password
like "userpasswd: {md5}$1$FNWIU7Fc$Smv/d8tgsx/KM/ddd4YDw0" , It fail. ( It said Login failed.)
 
Anyone have any idea please advise me ? 
 
 
Example. My successful authentication LDIF

dn: cn=ning,o=system.pacific.net.th,o=hosting,dc=pacific.net, dc=th
dc: th
mailMessageStore: /vmail/hosting/system.pacific.net.th/ning/Maildir/
mail: [EMAIL PROTECTED]
ou: system.pacific.net.th
uid: ning
cn: ning
associatedDomain: system.pacific.net.th
accountStatus: active
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: dNSDomain
objectClass: domainRelatedObject
objectClass: qmailUser
givenName: ning
sn: rung
userPassword: ning123
mailQuota: 102400000
deliveryMode: normal

Example. My unsuccessful authentication LDIF

dn: cn=ning,o=system.pacific.net.th,o=hosting,dc=pacific.net, dc=th
dc: th
mailMessageStore: /vmail/hosting/system.pacific.net.th/ning/Maildir/
mail: [EMAIL PROTECTED]
ou: system.pacific.net.th
uid: ning
cn: ning
associatedDomain: system.pacific.net.th
accountStatus: active
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: dNSDomain
objectClass: domainRelatedObject
objectClass: qmailUser
givenName: ning
sn: rung
userpasswd: {md5}$1$FNWIU7Fc$Smv/d8tgsx/KM/ddd4YDw0
mailQuota: 102400000
deliveryMode: normal
This is my authldaprc
 
LDAP_SERVER             author1.pacific.net.th
LDAP_PORT               389
LDAP_BASEDN             dc=pacific.net,dc=th
LDAP_BINDDN             cn=Manager,dc=pacific.net,dc=th
LDAP_BINDPW             secret
LDAP_TIMEOUT            5
LDAP_AUTHBIND           1
LDAP_MAIL               mail
LDAP_FILTER           (objectClass=qmailUser)
LDAP_GLOB_UID           vmail
LDAP_GLOB_GID           vmail
LDAP_HOMEDIR            mailMessageStore
LDAP_MAILDIR            mailMessageStore
LDAP_FULLNAME           cn
LDAP_CLEARPW            clearPassword
LDAP_CRYPTPW            userPassword
LDAP_DEREF              never
LDAP_TLS                0
 
 
 
Chatuporn Rungcharoensrichai
System Engineer
Pacific Internet ( Thailand ) Limited

Reply via email to