cyradm: Login failed: generic failure at ... Cyrus/IMAP/Admin.pm

Mike O'Rourke mike.orourke at op.org
Fri Jan 31 09:54:42 EST 2003


>Hi,
>
>still having troubles with cyrus!
>MAJOR PROBLEM : I cannot set up mailboxes.
>
>Getting access to cyrus gives me:
>
>#> cyradm --user cyrus --auth login localhost
>IMAP Password:
>               Login failed: generic failure at
>/usr/lib/perl/5.6.1/Cyrus/IMAP/Admin.pm line 114
>cyradm: cannot authenticate to server with login as cyrus

This is exactly the error I get when I try "--auth login". Try with "--auth 
plain". If that is rejected as an unworthy mech, see if cyrus-sasl was 
compiled with the --enable-plain option. Failing that you can try it with 
"--auth CRAM-MD5".

If all of this fails, check the owner (user and group) of your sasldb2 file 
(on my system, /etc/sasldb2; yours may be different). The file should be 
owned by cyrus with 600 permissions. On some systems (esp. sendmail 
8.12.x), the permissions may need to be 640 with the group of smmsp (or 
whatever group sendmail belongs to).


>Further information You may need:
>
>imtest checks fails?
>helium:~# imtest -u cyrus -a cyrus -p imap -m login -v localhost
>S: * OK helium Cyrus IMAP4 v2.1.11 server ready
>C: C01 CAPABILITY
>S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
>NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT
>THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=OTP AUTH=DIGEST-MD5
>AUTH=CRAM-MD5
>S: C01 OK Completed
>Please enter your password:
>C: L01 LOGIN cyrus {7}
>S: + go ahead
>C: <omitted>
>S: L01 NO Login failed: generic failure
>Authentication failed. generic failure
>Security strength factor: 0
>. logout
>* BYE LOGOUT received
>. OK Completed
>Connection closed.
>
>and /v/l/syslog gives:
>
>Jan 31 14:15:01 helium imapd[20345]: badlogin: localhost[127.0.0.1]
>plaintext cyrus SASL(-1): generic failure: checkpass failed
>
>Though I have set passwords for cyrus :
>
>helium:~# sasldblistusers2
>cyrus at helium: userPassword
>cyrus at helium.epag.net: userPassword
>cyrus at localhost: cmusaslsecretOTP
>cyrus at helium: cmusaslsecretOTP
>cyrus at helium.epag.net: cmusaslsecretOTP
>cyrus at localhost: userPassword
>
>/etc/imapd.conf:
>
>configdirectory: /var/lib/cyrus
>defaultpartition: default
>partition-default: /var/spool/cyrus/mail
>partition-news: /var/spool/cyrus/news
>newsspool: /var/spool/news
>admins: cyrus
>imap_admins: cyrus
>sasl_pwcheck_method: saslauthd
>allowplaintext: yes
>allowanonymouslogin: no
>popminpoll: 1
>umask: 077
>
>PLEASE HELP!





More information about the Info-cyrus mailing list