testsaslauthd works flawlessly everytime. I have indeed have the "sasl_mech_list: plain login" line in my imapd.conf also...
It's quite strange as it works the first time I start the cyrus server up, and then any subsequent times results in failure.
For instance, here is an example of the login process...
[EMAIL PROTECTED]:~# /etc/init.d/cyrus21 start
Starting Cyrus IMAPd: cyrmaster.
[EMAIL PROTECTED]:~# cyradm -u jb localhost
IMAP Password:
soapbox> lm
user.jb (\HasNoChildren) user.test2 (\HasNoChildren)
user.johnblade (\HasNoChildren)
soapbox> exit
[EMAIL PROTECTED]:~# cyradm -u jb localhost
Password:
cyradm: cannot authenticate to server as user jb
[EMAIL PROTECTED]:~#
Reading the log files from this attempt looks like this for mail.log:
Dec 28 14:12:56 soapbox cyrus/imapd[21453]: accepted connection
Dec 28 14:12:59 soapbox cyrus/imapd[21453]: login: soapbox[127.0.0.1] jb plaintext
Dec 28 14:13:00 soapbox cyrus/imapd[21453]: accepted connection
Dec 28 14:13:02 soapbox cyrus/imapd[21453]: badlogin: soapbox[127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database]
Dec 28 14:14:05 soapbox cyrus/master[21446]: process 21453 exited, status 0
and for auth.log
Dec 28 14:16:37 soapbox cyrus/imapd[21498]: OTP unavailable because can't read/w
rite key database /etc/opiekeys: No such file or directory
Dec 28 14:16:37 soapbox cyrus/imapd[21498]: DIGEST-MD5 server step 1
Dec 28 14:16:37 soapbox perl: DIGEST-MD5 client step 2
Dec 28 14:16:39 soapbox cyrus/imapd[21498]: DIGEST-MD5 server step 2
Dec 28 14:16:39 soapbox cyrus/imapd[21498]: no secret in database
Dec 28 14:16:42 soapbox perl: NTLM client step 1
Dec 28 14:16:42 soapbox cyrus/imapd[21498]: NTLM server step 1
Dec 28 14:16:42 soapbox cyrus/imapd[21498]: client flags: 207
Dec 28 14:16:42 soapbox perl: NTLM client step 2
Dec 28 14:16:42 soapbox perl: No worthy mechs found
Dec 28 14:17:01 soapbox CRON[21507]: (pam_unix) session opened for user root by
(uid=0)
Dec 28 14:17:01 soapbox CRON[21507]: (pam_unix) session closed for user root
Any ideas?
If you use saslauthd, you forgot to suppress DIGEST-MD5. saslauthd can only
handle plain and login. Add something like "sasl_mech_list: plain login" to
your imapd.conf.
If saslauthd itself works, you can test with "testsaslauthd".
--
Regards,
JB Hewitt
Business: http://www.stcpl.com.au
Blog: http://blade.lansmash.com
Best LAN ever: http://www.lansmash.com
How to ask a ?: http://www.catb.org/~esr/faqs/smart-questions.html
---- 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