initial commit of file from CVS for smeserver-expire-accounts on Sat Sep 7 19:52:48 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 19:52:48 +10:00
parent fccbe8588b
commit 133c7905f7
77 changed files with 6895 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/perl -w
use strict;
use esmith::AccountsDB;
use User::pwent;
my $a = esmith::AccountsDB->open || die "Couldn't open the AccountsDB\n";
my $event = $ARGV[0];
my $user = $ARGV[1];
if (!$event){
die "Event must be specified\n";
}
if (!$user){
die "User must be specified\n";
}
my $rec = $a->get($user) || die "user $user not found in AccountsDB\n";
$rec->delete_prop('ExpireLockedOn');