Monday, November 12, 2007

Webmin and smbldap-tools,user and password

Edit the file:

/usr/share/webmin/ldap-useradmin/save_user.cgi

and add under line (262):

elsif ($in{'passmode'} == 3) {
# Normal password entered - check restrictions
local $err = &useradmin::check_password_restrictions(
$in{'pass'}, $user);
&error($err) if ($err);
$pass = $pfx.&encrypt_password($in{'pass'});
$plainpass = $in{'pass'};

these lines:
open BUF, "-|" or
exec "/usr/sbin/slappasswd",
"-h","{SSHA}",
"-s","$pass";
$pass = ;

No comments: