Hi,

Make sure you have the following lines in imapd.conf:
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: PLAIN LOGIN 

Now try to create user with web-cyradm interface.
Update password of the user you have created with your scripts with the 
password of the new user you've created with web-cyradm.

Try to login with the username you've created via script and new password from 
web-cyradm created user.

Post here the results.

Regards,
Leon Kolchinsky

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Saturday, September 17, 2005 2:31 PM
To: [email protected]
Subject: [Web-cyradm] Convert auth db from sasldb to mysql

OK. I'm trying to install web-cyradm in a fedora core 4 system with cyrus-imapd 
and postfix already installed. The mail system logins through
sasldb2 database with contains user names. Users have been added with 
saslpasswd methods and everything works fine. Mailsystem is working fine.
Now I want to authenticate users through mysql database and I want to use 
web-cyradm.

First, I have tried cyrus-imapd server works correctly. I have changed 
/etc/pam.d/imap file and I have added the neccesary lines for mysql and crypt 
auth. I have added some lines to /etc/imapd.conf to configure cyrus-imapd 
correctly. saslauthd is using pam as auth mechanism.
I have added users to mysql database *manually* because I had users created 
into cyrus system. I think I have added users correctly. I have used scripts 
from web-cyradm to create databases and admin users and I have added new users 
with ENCRYPT commands. Domain names and prefixes are inserted OK. I have 
compared the new database with another one created for web-cyradm (that works 
OK) and they have the same things (certainly with domain names changed).

I have tried to login into cyrus-imap with cyradm --user cyrus --server 
localhost --auth plain (this command worked fine with sasldb2 database) and 
logs show me the following things:

maillog:
anna imap[16006]: accepted connection
anna imap[16006]: badlogin: anna.localhost.com [127.0.0.1] PLAIN [SASL(-16): 
encryption needed to use mechanism: security flags do not match required] anna 
imap[16006]: badlogin: anna.localhost.com [127.0.0.1] plaintext cyrus
SASL(-13): authentication failure: checkpass failed

mysql log:
69 Connect     [EMAIL PROTECTED] on mail
69 Init DB     mail
69 Query       SELECT password FROM accountuser WHERE username='cyrus'
69 Query       insert into log (msg, user, host, pid, time) values('AUTH 
SUCCESSFUL', 'cyrus', '', '15719', NOW())
69 Quit

With testsaslauthd -u cyrus -p password -s imap I obtain:
0: NO "authentication failed"

I think mysql authentication is working OK ('AUTH SUCCESSFUL') but something is 
wrong near pam-auth when cyrus-imap server try to authenticate users and I 
don't know what it is.

I need suggestions, please.



MhBeyle __ 

_______________________________________________
This mailing list is hosted and supported by bit-heads GmbH | 
http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to