But anyway, do you need a script to reset all your accounts to a temporary password and to impose change at next login? With ZCS, of course. Look no further.
#!/usr/local/bin/perl
while(<>)
{
$a = $_;
chop($a);
print "zmprov sp $a YouTempPass\n";
print "zmprov ma $a zimbraPasswordMustChange TRUE\n";
}
Save to whatever.pl, then, as the zimbra user, do something like:
zmprov -l gaa your.mail.domain | perl whatever.pl | sh
Hee-hah!
No comments:
Post a Comment