Hi,
very nice contrib indeed...
nenonano wrote:Todo:
- possibility to setup expiration period for account
- possibility to lock an account when password age > (max age + expiration time)
I was playing around with the user-passwd-expiration script in
/etc/e-smith/events/actions/ executed by cron.daily.
I added the following in the script to lock a account when password is
expired :
system("/sbin/e-smith/signal-event", "user-lock", $name);
look for the following in the script and add the red one:
if ($time2warn >= $pwdwarn) {
system("/sbin/e-smith/signal-event", "user-lock", $name);
#message to admin is hardcoded in english; not so bad..
my $t1 = "To: admin\n";
With the Testsystem everything is working fine.
Maybe something to add to the contrib ?
Just my two cents.
Tschüss
Michael