Am Montag, 10. Mai 2004 07:23 schrieb Eric B.: > I've just installed Postfix compiled with SASL2 and Cyrus-SASL / Cyrus-Imap > onto a WBEL3 server. I rebuilt both the cyrus-sasl and imap pkgs myself, > so I am certain that they were built with the same version of db4. When I > try to test my cyrus-Imapd connection with "cyradm", I am failing. I am > getting an error "perl: No worthy mechs found.". I'm somewhat new to all > this, so am not sure what this means. Any help will be greatly > appreciated. > > Right now, I have the following packages installed: > cyrus-sasl-plain-2.1.18-1 > cyrus-sasl-2.1.18-1 > cyrus-sasl-gssapi-2.1.18-1 > cyrus-sasl-md5-2.1.18-1 > cyrus-sasl-devel-2.1.18-1 > cyrus-imapd-utils-2.2.3-8 > cyrus-imapd-2.2.3-8 > postfix-2.1.1.1-1 (compiled for MySQL, sasl2, VDA) > > > I am following the Postfix-Cyrus-Web-cyradm-HOWTO. My command line is the > > following: > > saslpasswd2 -c cyrus > > Password: secret > > Again (for verification): secret
Here you create a user in /etc/sasldb2... > When I try to connect with cyradm: > > cyradm --user cyrus --server localhost --auth plain > > Password: secret > > IMAP Password: secret > > I get the following errors in my /var/log/auth.log: > May 10 00:47:21 linuxmail perl: No worthy mechs found > May 10 00:52:01 linuxmail imap(pam_unix)[31961]: authentication failure; > logname= uid=0 euid=0 tty= ruser= rhost= user=cyrus > May 10 00:52:01 linuxmail saslauthd[31961]: pam_sm_authenticate called. ... but you are using saslauthd. These are two difrent storages. > /var/log/maillog: > May 10 01:12:50 linuxmail imap[31979]: accepted connection > May 10 01:12:50 linuxmail master[32099]: about to exec > /usr/lib/cyrus-imapd/imapd > May 10 01:12:50 linuxmail imap[32099]: executed > May 10 01:13:00 linuxmail imap[31979]: badlogin: localhost.localdomain > [127.0.0.1] PLAIN [SASL(-4): no mechanism available: security flags do not > match required] > May 10 01:13:11 linuxmail imap[31979]: badlogin: localhost.localdomain > [127.0.0.1] plaintext cyrus SASL(-13): authentication failure: checkpass > failed > > Like I said, I'm somewhat new to all this, so do not entirely understand > what these log messages are telling me. What does "No worthy mech found" > mean? Secondly, why would I get a pam_mysql: select returned an invalid > encrypted password? I'm trying to use plain passwords for the moment, > until I am certain everything is working. My passwords in my MySql DB are > in plain text. If your passwords are unencrypted in a mysql-db, you should use the sql-auxprop-plugin. In your plugin-dir should be a libsql.so*-Plugin. The available options are described in ./doc/options.html -- Andreas --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html