problems with authentication

Andrzej Kwiatkowski andrzej.kwiatkowski at
Sat Oct 22 14:34:07 EDT 2005


I want to do authentication over PGSQL without pam.

So, my imapd.conf looks like:

configdirectory:        /opt/mail/cyrus1/var/config
hashimapspool:          0

partition-default:      /opt/mail/cyrus1/var/mailboxes

allowplaintext: 1

sasl_mech_list: plain login

sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql

sasl_sql_engine: pgsql
sasl_sql_hostnames: localhost
sasl_sql_database: isp
sasl_sql_user: isp
sasl_sql_select: SELECT password FROM users WHERE uid = '%u'
sasl_sql_verbose: yes

Entry in my PGSQL database looks like:
uid: password
kwiatek | ecb1578defd757314d30f1b571a12be4

As a password format i want to use Digest-MD5.
When i connect to imap/pop3 service, i can't authenticate.
In logs i can see:

Oct 22 20:28:14 kwiatek pop3[26686]: badlogin: localhost []
plaintext kwiatek SASL(-13): authentication failure: checkpass failed

What i'm missing ?
How to setup auth over auxprop plugin and digest-md5 passwords ?

Thanks  in advance

More information about the Info-cyrus mailing list