AUTH CRAM-MD5 FAILD When LOGIN CYRUS-IMAPD SERVER.

Igor Brezac igor at ipass.net
Sun Jul 11 23:19:43 EDT 2004


On Mon, 12 Jul 2004, Wang Penghui wrote:

> Hi,all.
>
> I have a mail server which built with cyrus-imapd postfix openldap
> cyrus-sasl under gentoo linux. When login with the php function
> "imap_open", it will fail with a error follow, i have recorded the
> streams send and received within the client and server.
>
> That's the message what i have recorded:
>
> * OK mail.garage.com Cyrus IMAP4 v2.2.3-Gentoo server ready
> 00000000 CAPABILITY
> * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
> NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
> BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
> STARTTLS AUTH=NTLM
> AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPE
> 00000000 OK Completed
> 00000001 AUTHENTICATE CRAM-MD5
> + PDk3MTMzMTAxNi4xNTgxOTQ1MkBEb2xwaGluPg==
> d2FuZ3BlbmdodWkgMmU0NzRjMzkyNzcyZGZkMGM0OWZlODU1NTllZTEyNjM=
> 00000001 NO user not found
>
> It looks like that the CRAM-MD5 authenticate have faild.
>
> But when i use mozilla-thunderbird to access the imap folders, it works
> well.
> Here's the streams i have recorded for it:
>
> * OK mail.garage.com Cyrus IMAP4 v2.2.3-Gentoo server ready
> 1 capability
> * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
> NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
> BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
> STARTTLS AUTH=NTLM AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR LISTEXT
> LIST-SUBSCRIBED X-NETSCAPE
> 1 OK Completed
> 2 login "username" "passwd"
> 2 OK User logged in
>
> It works well. But not use the CRAM-MD5 authenticate.
>
> And Some of my configuration files are:
>
> =====IMAPD.conf======
> configdirectory:        /var/imap
> partition-default:      /var/spool/imap
> sievedir:               /var/imap/sieve
> tls_cert_file:          /etc/cyrusimapd/server.crt
> tls_key_file:           /etc/cyrusimapd/server.key
> admins:                 cyrus
> hashimapspool:          yes
> allowanonymouslogin:    no
> allowplaintext:         yes
> unixhierarchysep:       0
> servername:             mail.garage.com
> sasl_pwcheck_method:    saslauthd
> mech_list: plain login

Make this

sasl_mech_list: plain login

-- 
Igor
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list