libsasl2-modules-sql without crypt support on debian etch

Tomasz Brzezina tomasz at brzezina.pl
Wed Apr 11 14:15:24 UTC 2007


fast solution

in file lib/check.pw at line 189 is checking:

if(auxprop_values[0].name
        && auxprop_values[0].values
        && auxprop_values[0].values[0]
        && !strcmp(auxprop_values[0].values[0], passwd)) {
   /* We have a plaintext version and it matched! */
   return SASL_OK;

change it to:
if(auxprop_values[0].name
        && auxprop_values[0].values
        && auxprop_values[0].values[0]
        && (!strcmp(auxprop_values[0].values[0], passwd) ||
!strcmp(crypt(passwd,auxprop_values[0].values[0]),auxprop_values[0].values[0])))
{
   /* We have a plaintext version and it matched! */
   return SASL_OK;

before compilation you also have to add -lcrypt to LIBS = field in 
lib/Makefile

Works perfectly ;D

Maybe someday someone use it and add crypt support to debian package?
-- 
Tomasz Brzezina



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