Okay, I'm confused. Are you using SASLv2 or v1? You seem to be able to execute both saslpasswd and saslpasswd2.

Anyway, if you wish to use the auxprop plugin, the parameter 'sasl_pwcheck_method' should be set to 'auxprop' FYI, there's no option 'shadow' for 'sasl_pwcheck_method'.

    sasl_pwcheck_method: auxprop

If you're using auxprop, then you have to have a sasldb2 file in your /etc directory. To create it (if it isn't present), you could start by adding the user cyrus:

    saslpasswd2 -c cyrus

If you wish to have PLAINTEXT authentication only, then add a parameter 'sasl_mech_list' and have 'plain'  as its only option, like this:

    sasl_mech_list: plain

Then test your configuration by typing in the following command:

    imtest -m login -a cyrus localhost

Regarding the error message you received while executing saslpasswd2, I'm not sure as to what it is trying to imply but if you don't have any userIDs residing in the file, you could try deleting it and then use saslpasswd2 to recreate the file. Hope this helps...


-- 
 << Eugene  Chow >>
     ==--==--==
-=ecentrenet dot kom=-
http://www.ecentrenet.com
************************************

Su Li wrote:
I am using Linux redhat 7.2. Yes the root partition is located on the
mirrored disk. 

I did saslpasswd cyrus sccucessfully. I login as root to Linux and su to
cyrus.

When I do:
[cyrus@bwc-imap-01 cyrus-sasl-2.1.7]$ cyradm localhost
Password: 
cyradm: cannot authenticate to server with  as cyrus

I got:
Sep 16 12:27:41 bwc-imap-01 imapd[6893]: no OTP secret in database
Sep 16 12:27:41 bwc-imap-01 imapd[6893]: badlogin: web4[127.0.0.1] OTP
[SASL(-13): user not found: no OTP secret in database]
Sep 16 12:27:45 bwc-imap-01 perl: No worthy mechs found


When I do: [cyrus@bwc-imap-01 cyrus-sasl-2.1.7]$ cyradm -auth login
localhost

I got:
Login failed: user not found at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 114
cyradm: cannot authenticate to server with login as cyrus 

Thanks,


Su

Reply via email to