Commit 56b88d06 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5332 Skip users when no max age can be computed to avoid perl error

parent 8779dfca
......@@ -203,6 +203,11 @@ sub check_expired_users {
}
}
if (not defined $maxAge) {
print "No ppolicy max age found for $cn\n" if $verbose;
next;
}
if ($pwdChangedTimestamp + $maxAge <= $now) {
print "$cn is Expired\n" if $verbose;
} elsif ($pwdChangedTimestamp + $maxAge <= $next_alert_date) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment