I posted earlier on a patch to passwd.c, but that is not enough
without a corresponding patch to route.c, in the function
route_finduser:
if (lastpw != NULL)
{
>>> pwcopy.pw_passwd = lastpw->pw_passwd; <<<< insert this line
[or should it first go through string_format as the other members of
lastpw?
pwcopy.pw_uid = lastpw->pw_uid;
Then, with the prev patch to passwd.c, you can then use passwd to
lookup passwords (...), for instance
For PLAIN: (tab = spaces)
server_condition = \
"${if and\
{\
{!eq{$2}{}}\
{!eq{$3}{}}\
{crypteq\
{$3}\
{${extract{1}{:}\
{${lookup passwd {$2}{$value}{*}}}\
}}\
}\
}\
{1}{0}}"
Bugs? >@@:<
Giuliano