[EMAIL PROTECTED] wrote:
> 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.

Hello:

I'm the maintainer of the packages. Please 
excuse me for the delay in this response.

> 
> [ 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

These are the steps the pre install scripts of the
packages try to do (please check this is what you have 
in your system after installing the packages):

o Try to create a cyrus system user (uid 76) and a shadow system 
  group (gid 76).

o Add user cyrus to group shadow and to group mail (supplementary group)

o Create the /etc/sasldb file owned by cyrus/mail and 640 perms
  (actually, I'm considering changing this because this setup
  may be stopping user deploying Cyrus along with Sendmail out of
  the box, I do not use this type of setup but errors as reported 
  by users to em an to Red Hat's Bugzilla seems to indicate 
  this, any help for the user in the mail list will be very 
  appreciated).

> 
> 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
> 

Another tip that may be of some help:

Did you created yhe mailbox for your cyrususer, maybe this
is the error that keeps such user breceiving such generic 
authentication failure.

If I remember well, the steps to create a mailbox are:

A) Create the cyrus user to Cyrus (actually SASL); you
   can do it using saslpasswd in the same way you used it
   to create cyrususer. cyrus is the only user able to create 
   mailboxes as indicated by the "admins: cyrus" line in 
   your /etc/imapd.conf file. I thin you don't need 
   to create a mailbox for this cyrus user.

B) With the server running, use cyradm to connect to it (see
   the man page for switches), login as cyrus using the 
   password you choose in step A)

C) create the the mailbox for the cyrususer

     cm user.cyrususer

   and quit cyradm

D) Now you can try your imtest experiments again

Perhaps I must add to the README.RPM file, any correction suggestion
will be appreciated.

Good luck!

--
Ramiro


____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1

Reply via email to