lighttpd and twiki : Managing htpasswd file
Using twiki with lighttpd is not yet as simple as it should be. One particular problem is that twiki writes out htpasswd files that lighttpd doesn’t parse correctly (twiki includes an unnecessary ‘:$email’ entry).
To fix the problem (so that users can manage their own passwords) here’s a quick fix for {twiki}/lib/TWiki/Users/HtPasswdUser.pm :
# $s .= $_.’:’.$db->{$_}->{pass}.’:’.$db->{$_}->{emails}."\n";
$s .= $_.‘:’.$db->{$_}->{pass}."\n";
}
}
return $s;
}
Of course, in the configuration, HtPasswdUser needs to be set as the password manager. And crypt chosen as the encryption method.