Problem in authenticating via sasldb2

Mike O'Rourke mjoop at curia.op.org
Fri Mar 12 11:44:32 EST 2004


> "Luca Manganelli" <manganelli at ksolutions.it> 03/12/04 11:59am >>>
>I've read all docs and your emails, but I am still not able to
>authenticate via sasldb2 file.
>
>I configured Cyrus in this way:
>
>---------------------------------------------------
>[root at ksmail-test cyrus-imapd]# cat /etc/imapd.conf
>configdirectory: /var/lib/imap
>partition-default: /var/spool/imap
>admins: cyrus ksmail
>lmtp_admins: cyrus ksmail
>allowanonymouslogin: yes
>allowplaintext: yes
>sievedir: /var/lib/imap/sieve
>sendmail: /usr/sbin/sendmail
>servername: kmailcert.it
>hashimapspool: true
>sasl_pwcheck_method: auxprop
>sasl_mech_list: plain login
>---------------------------------------------------
>
>and I added a cyrus user:
>
>--------------------------------------------------------------
>[root at ksmail-test cyrus-imapd]# /usr/sbin/saslauthd -v
>saslauthd 2.1.17
>authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap
>
>[root at ksmail-test etc]# /usr/sbin/saslpasswd2 -c -u cyrus localhost
>Password:
>Again (for verification):
>
>[root at ksmail-test etc]# strings sasldb2
>md5     0499 ks5010     1c3d9a702b79ad9f        00000000000000000000
>localhost
>cyrus
>cmusaslsecretOTP
>cyrus
>localhost
>cyrus
>userPassword
>---------------------------------------------------------------------
>
>I tried to connect via cyrusadm:
>
>---------------------------------------------------------------------
>[root at ksmail-test cyrus-imapd]# ./cyradm --user cyrus localhost
>IMAP Password:
>               at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 118
>cyradm: cannot authenticate to server with  as cyrus
>---------------------------------------------------------------------
>
>the logs:
>
>---------------------------------------------------------------------
>[root at ksmail-test cyrus-imapd]# tail /var/log/auth.log
>Mar 12 11:57:48 ksmail-test perl: No worthy mechs found
>---------------------------------------------------------------------
>
>any idea how to figure out of this?
>
>Thanks

Hi Luca,

1. saslauthd has *nothing* to do with your setup.

2. use "sasldblistusers2" rather than "strings sasldb2"

3. where are you when you execute "./cyradm ..."? It looks like you are
in your build directory. Try the one in /usr/local/bin (if you installed
it in the default location) "cyradm --user cyrus --auth plain
localhost". I have to use "cyradm --user cyrus --auth DIGEST-MD5
localhost" since I have not explicitely set the sasl_mech_list.

Mike.

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list