Unable to login
Patrick Radtke
phr2101 at columbia.edu
Thu Jun 2 12:14:03 EDT 2005
You have the -u and -a parameters mixed up.
You want to authenticate (-a) as 'cyrus' and be authorized (-u) as USER.
In your imapd.conf file you have
> sasl_mech_list: PLAIN
So the only SASL mechanism that will be advertised by the server is
PLAIN. It will only be advertised if you connect securely.
Try adding a -t "" to you command line arguments as well.
To know what AUTH mech are available look at the output from imtest.
Example:
The first CAPABILITY call returns no AUTH mechanisms. Then we establish
a TLS connection and issues the call again. Then we get the AUTH=PLAIN
mechanism available.
--------------------
imtest -a cyrus -u tc2154 -t "" -p imap localhost
S: * OK notdog.cc.columbia.edu Cyrus IMAP4 v2.3-alpha server ready
C: C01 CAPABILITY
S: * 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
S: C01 OK Completed
C: S01 STARTTLS
S: S01 OK Begin TLS negotiation now
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
C: C01 CAPABILITY
S: * 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
AUTH=PLAIN SASL-IR
S: C01 OK Completed
Please enter your password:
hope that helps,
-Patrick
On Jun 2, 2005, at 10:21 AM, Imran Aziz wrote:
> Thanks a lot for your response.
>
> That works perfectly fine for me, however using
>
> imtest -u cyrus -a USER -m login -p imap -v localhost
>
> The same details dont work.
>
> Any other pointers.
>
> How can I find out which authentication method is configured for my
> installation
>
> imtest docs say that supported methods are listed in the AUTH details
> displayed on login , but for my install there is no AUTH details.
>
> Imran.
---
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