Wednesday, November 21, 2007

VMWare problem

libpng12.so.0: no version information available

just copy the /usr/lib/libpng12.so.0 to /usr/lib/vmware/lib/libpng12.so.0/

Change Webmin root password

/usr/share/webmin/changepass.pl /etc/webmin root

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 = ;