checkpw with crypt password (patch)

Chris Ruehl chris.ruehl at xit.com.hk
Tue Jan 8 01:48:57 UTC 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.alioth.debian.org/pipermail/pkg-cyrus-sasl2-debian-devel/attachments/20130108/1699bcaa/attachment.ksh>


More information about the Pkg-cyrus-sasl2-debian-devel mailing list