cannot login with cyradm

Christian Beilstein cbeilstein at gmx.ch
Tue Dec 16 11:04:14 EST 2003


Hi

Had the same problem on RH9; my solution was to add the user cyrus to the /etc/sasldb2
Try

saslpwd2 -c cyrus

to add cyrus; that should solve the problem (I honestly dont know if it's a good solution, but it worked in my case ;-)

good luck

chris

> Hi :)
>
> I have a SuSE9.0 with the distributed cyrus-imapd from the installation  cds running. Additionally, I downloaded the cyrus-sasl from the official  website and compiled it with LDAP support.
>
> If I now try 'cyradm --user cyrus localhost' (the user 'cyrus' exists on  the LDAP directory), I get "cannot connect to server". In
> /var/log/messages, I see:
>
> Dec 16 15:29:28 lx14 master[25264]: about to exec /usr/lib/cyrus/bin/imapd Dec 16 15:29:28 lx14 imap[25264]: executed
> Dec 16 15:29:28 lx14 imapd[25264]: accepted connection
> Dec 16 15:29:31 lx14 imapd[25264]: unable to open Berkeley db
> /etc/sasldb2: No such file or directory
> Dec 16 15:29:31 lx14 imapd[25264]: no OTP secret in database
> Dec 16 15:29:31 lx14 imapd[25264]: don't have a OTP secret
> Dec 16 15:29:31 lx14 imapd[25264]: badlogin: localhost[127.0.0.1] OTP  [SASL(-1): generic failure: don't have a OTP secret]
> Dec 16 15:29:34 lx14 imapd[25264]: DIGEST-MD5 server step 1
> Dec 16 15:29:34 lx14 perl: DIGEST-MD5 client step 2
> Dec 16 15:29:34 lx14 imapd[25264]: DIGEST-MD5 server step 2
> Dec 16 15:29:34 lx14 imapd[25264]: unable to open Berkeley db
> /etc/sasldb2: No such file or directory
> Dec 16 15:29:34 lx14 imapd[25264]: unable to open Berkeley db
> /etc/sasldb2: No such file or directory
> Dec 16 15:29:34 lx14 imapd[25264]: no secret in database
> Dec 16 15:29:34 lx14 imapd[25264]: badlogin: localhost[127.0.0.1]  DIGEST-MD5 [SASL(-13): user not found: no secret in database]
> Dec 16 15:29:37 lx14 imapd[25264]: bad userid authenticated
> Dec 16 15:29:37 lx14 imapd[25264]: badlogin: localhost[127.0.0.1]  CRAM-MD5 [SASL(-13): authentication failure: bad userid authenticated] Dec 16 15:29:40 lx14 perl: No worthy mechs found
>
> I guess there may be something wrong with the configuration of the  imap-server itself!? I already tried to compile cyrus-imapd myself, but  make aborts with errors (some undefined references in
> cyrusMasterMIB.c).
>
> Has anybody got a hint for me?
>
> Thanks,
>
> Nora






More information about the Info-cyrus mailing list