checkpw with crypt password (patch)
Chris Ruehl
chris.ruehl at xit.com.hk
Thu Jan 3 00:17:56 EST 2013
Dear All,
I like to submit you our patches applied to lib/checkpw.c lib/Makefile.am
The patches add crypt() compare for salted crypt password.
We use this to allow postfix using sasl read and validate crypt passwords
for a database table (postgres).
Tests are successful done on a Debian Wheezy with following configuration:
/etc/postfix/sasl/smtpd.conf
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: pgsql
password_format: crypt
mech_list: LOGIN PLAIN
sql_engine: pgsql
sql_user: postfix
sql_passwd: *********
sql_hostnames: localhost
sql_database: *******
sql_select: select cryptpw as password from mailacct where account='%u@%r'
sql_usessl: no
testmaildb=> SELECT id,account,cryptpw from mailacct where id=1
;
id | account | cryptpw
----+----------------------+------------------------------------
1 | tester at testdom.local | $1$.wMUVvWa$cPWzm5.zHZAqgMBcEC7fA/
(1 row)
Please review the patch and submit it to your upstream releases.
happy new year !
Cheers
Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0038-checkpw_add_cryptcmp.dpatch
Url: http://lists.andrew.cmu.edu/pipermail/cyrus-sasl/attachments/20130103/92a1e1dc/attachment.ksh
More information about the Cyrus-sasl
mailing list