libsasl2-modules-sql without crypt support on debian etch
Tomasz Brzezina
tomasz at brzezina.pl
Wed Apr 11 14:16:33 UTC 2007
DAMNED - forgot previous post - this is correct (previous was for
testing purposes - unsecure)
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(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