Hello,
on my debian box I have installed open exchange via the debian packages. As my imap server I use cyrus 2.2.
No I am trying to get cyrus imap configured to authenticate against the ox6 mysql database.
Therefore I told cyrus to use saslauthd, and saslauthd to use pam.
My imap.conf states:
sasl_mech_list: PLAIN LOGIN
sasl_pwcheck_method: saslauthd
My /etc/saslauthd states:
MECHANISMS="pam"
In /etc/pam.d/ I created a file called "imap" which looks like:
When I try to authenticate against IMAP I get the following messages in my /var/log/auth.log:
In the mysql.log I can see the query being executed:
Does anybody have an idea why the pasword check fails? I am somehow running out of ideas...
Thanks,
Gunnar
on my debian box I have installed open exchange via the debian packages. As my imap server I use cyrus 2.2.
No I am trying to get cyrus imap configured to authenticate against the ox6 mysql database.
Therefore I told cyrus to use saslauthd, and saslauthd to use pam.
My imap.conf states:
sasl_mech_list: PLAIN LOGIN
sasl_pwcheck_method: saslauthd
My /etc/saslauthd states:
MECHANISMS="pam"
In /etc/pam.d/ I created a file called "imap" which looks like:
Code:
@include common-auth @include common-account auth optional pam_mysql.so host=/var/run/mysqld/mysqld.sock user=openexchange p\ asswd=xxxxx db=oxdatabase_6 [table=login2user LEFT JOIN user ON login2user\ .id=user.id AND login2user.cid=user.cid] [where=user.cid=1] usercolumn=login2us\ er.uid passwdcolumn=user.userPassword crypt=1 log=1 account required pam_mysql.so host=/var/run/mysqld/mysqld.sock user=openexchang\ e passwd=xxxxx db=oxdatabase_6 [table=login2user LEFT JOIN user ON login2u\ ser.id=user.id AND login2user.cid=user.cid] [where=user.cid=1] usercolumn=logi\ n2user.uid passwdcolumn=user.userPassword crypt=1 log=1
Code:
cyrus/imap[17633]: badlogin: localhost [127.0.0.1] plaintext gunnarstahl SASL(-13): authentication failure: checkpass failed cyrus/imap[17633]: telling master 1
Code:
090304 0:30:08 446 Connect openexchange@localhost on oxdatabase_6 446 Init DB oxdatabase_6 446 Query SELECT user.userPassword FROM login2user LEFT JOIN user ON login2user.id=user.id AND login2user.cid=user.cid WHERE login2user.uid = 'gunnarstahl' AND (user.cid=1) 446 Query SELECT user.userPassword FROM login2user LEFT JOIN user ON login2user.id=user.id AND login2user.cid=user.cid WHERE login2user.uid = 'gunnarstahl' AND (user.cid=1) 090304 0:30:10 446 Quit 090304 0:30:15 443 Quit 442 Quit
Thanks,
Gunnar
Comment