Got cyrus to compile but now it's not working.

Frank Pittel fwp at deepthought.com
Wed Oct 27 14:12:02 EDT 2010


I'm sure a number of you remember the problems I had getting cyrus
imap and sasl to compile. I finally got it to compile and almost working.
The problem I'm having is with logging into the server. I've used sasl2 to generate
a password and made sure the dbs are owned by the user "cyrus". I'm reasonable sure
the imapd.conf and cyrus.conf files are good since I copied them from a linux machine
that has cyrus imapd/sasl2 working. I did of course fix up the paths in them.

When I try to login to run imtest I get the following entries in the imapd.log file:

Oct 27 12:47:55 cyrus-int master[4393]: [ID 392559 local6.debug] about to exec
/opt/cyrus/bin/imapd
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 518349 local6.debug] executed
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 136705 local6.debug] IOERROR: opening
/var/lib/imap/user_deny.db: No such file or directory
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 921384 local6.debug] accepted connection
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 301543 local6.info] skiplist: checkpointed
/var/lib/imap/tls_sessions.db (1 record, 320 bytes) in 0 seconds
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 574029 local6.debug] SSL_accept() incomplete -> wait
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 867439 local6.debug] SSL_accept() succeeded -> done
Oct 27 12:47:55 cyrus-int imap[4393]: [ID 379946 local6.notice] starttls: TLSv1 with cipher
AES256-SHA (256/256 bits new) no authentication
Oct 27 12:48:03 cyrus-int imap[4393]: [ID 914338 local6.notice] badlogin: localhost [127.0.0.1]
plaintext cyrus SASL(-1): generic failure: checkpass failed

The interaction with imtest is:

bash-3.00# ./imtest -a cyrus -t "" localhost
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=GSSAPI AUTH=CRAM-MD5 AUTH=PLAIN
AUTH=DIGEST-MD5 SASL-IR] cyrus-int Cyrus IMAP v2.4.2 server ready
C: S01 STARTTLS
S: S01 OK Begin TLS negotiation now
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
C: C01 CAPABILITY
S: * CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=GSSAPI AUTH=CRAM-MD5 AUTH=PLAIN
AUTH=DIGEST-MD5 SASL-IR ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS
NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT
SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC
SCAN XLIST URLAUTH URLAUTH=BINARY COMPRESS=DEFLATE IDLE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN cyrus {8}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 256


Any ideas?

Thanks
Frank


More information about the Info-cyrus mailing list