Hi everybody.

I have a question. I have decided to use Cyrus IMAP system a few days
ago, so I am a beginner of Cyrus. I encountered an error at first
step. My headache is the messages on console when inputing 'imtest'
command.

 S: A01 NO authentication failure
 Authentication failed. generic failure

I tried to use sasldb method and this must be easiest way to
authenticate user. Please give me a help.

[ ENVIRONMENT ]

   Distribution : RedHat7.1 (Japanese version)
   Library      : cyrus-sasl-1.5.24-17 (distribution included)
   Imapd        : cyrus-imapd-2.0.16   (http://rmrpms.tripod.com/cyrus-imapd/)

[ PROCESS ]

1. I made some rpm packages by 'rpm -ba' command. then installed these
   rpm file into system.

   # rpm -ihv cyrus-imapd-2.0.16-1rm.i386.rpm
   # rpm -ihv cyrus-imapd-doc-2.9.16-1rm.i386.rpm
   # rpm -ihv cyrus-imapd-utils-2.0.16-1rm.i386.rpm

2. I subscribed a user to /etc/sasldb database.

   [root@imap root]# saslpasswd cyrususer
   Password: *********                 <-- input 'cyrususer'
   Again (for verification): ********* <-- input 'cyrususer'

3. I could see user registration was seceeded.

   [root@imap root]# sasldblistusers
   user: cyrususer realm: imap.testdomain.test mech: DIGEST-MD5
   user: cyrususer realm: imap.testdomain.test mech: PLAIN
   user: cyrususer realm: imap.testdomain.test mech: CRAM-MD5

4. I started the master daemon.

   [root@imap root]# /usr/cyrus/bin/master &

5. I checked that imap system works correctly by imtest command. But I
   encounter authintication failure. I am sure the password I input is
   correct,I tried again and again.

   [root@imap root]# imtest -p imap -u cyrususer localhost
   C: C01 CAPABILITY
   S: * OK imap.s1.itd.nes.nec.co.jp Cyrus IMAP4 v2.0.16 server ready
   S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID 
NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES 
IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5 X-NETSCAPE
   S: C01 OK Completed
   C: A01 AUTHENTICATE DIGEST-MD5
   S: + 
cmVhbG09ImltYXAuczEuaXRkLm5lcy5uZWMuY28uanAiLG5vbmNlPSJQUXM0cUdodFkwOW55MFBmMG10VHVBbUNJMDdCdjQzZE9zRVdhZ0RTZmdZPSIscW9wPSJhdXRoLGF1dGgtaW50LGF1dGgtY29uZiIsY2lwaGVyPSJyYzQtNDAscmM0LTU2LHJjNCxkZXMsM2RlcyIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=
   Please enter your password: 
   C: 
dXNlcm5hbWU9InJvb3QiLHJlYWxtPSJpbWFwLnMxLml0ZC5uZXMubmVjLmNvLmpwIixhdXRoemlkPSJjeXJ1c3VzZXIiLG5vbmNlPSJQUXM0cUdodFkwOW55MFBmMG10VHVBbUNJMDdCdjQzZE9zRVdhZ0RTZmdZPSIsY25vbmNlPSJLQ0hTcGt3SHpKTFJWTC9pdWdYa1djcnI5em95UWlCVmZXS2FsYW5GTHRvPSIsbmM9MDAwMDAwMDEscW9wPWF1dGgtY29uZixjaXBoZXI9InJjNCIsY2hhcnNldD11dGYtOCxkaWdlc3QtdXJpPSJpbWFwL2xvY2FsaG9zdC5sb2NhbGRvbWFpbiIscmVzcG9uc2U9YjIwNjBiYjhjNDZlNWQyZWNjNTYyNDY2MGNlM2NjN2Q=
   S: A01 NO authentication failure
   Authentication failed. generic failure
   Security strength factor: 128

6. the imap log(/var/log/imapd.log) says like below.

   Sep  1 11:40:23 imap master[24824]: process started
   Sep  1 11:40:23 imap master[24825]: about to exec /usr/cyrus/bin/ctl_mboxlist
   Sep  1 11:40:23 imap ctl_mboxlist[24825]: running mboxlist recovery
   Sep  1 11:40:23 imap ctl_mboxlist[24825]: done running mboxlist recovery
   Sep  1 11:40:23 imap master[24826]: about to exec /usr/cyrus/bin/ctl_deliver
   Sep  1 11:40:23 imap master[24824]: ready for work
   Sep  1 11:40:23 imap master[24827]: about to exec /usr/cyrus/bin/ctl_mboxlist
   Sep  1 11:40:23 imap ctl_mboxlist[24827]: checkpointing mboxlist
   Sep  1 11:40:23 imap master[24824]: process 24827 exited, status 0
   Sep  1 11:40:31 imap master[24829]: about to exec /usr/cyrus/bin/imapd
   Sep  1 11:40:31 imap service-imap[24829]: executed
   Sep  1 11:40:31 imap imapd[24829]: accepted connection
   Sep  1 11:40:36 imap imapd[24829]: badlogin: localhost.localdomain[127.0.0.1] 
DIGEST-MD5 authentication failure

7. my /etc/imapd.conf file is like below.

   configdirectory: /var/imap
   partition-default: /var/spool/imap
   admins: cyrus
   allowanonymouslogin: no
   sasl_pwcheck_method: sasldb



thank you for your help in advance...

--Yuji Hara

Reply via email to