Commit 175367f9 authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Do not check pwdLastSet if user not found in AD (#980)

parent 60b6a4e2
......@@ -51,7 +51,7 @@ sub authenticate {
}
# Password must be changed if pwdLastSet 0
if ( $pls == 0 ) {
if ( defined $pls and $pls == 0 ) {
$self->lmLog( "[AD] Password reset. User must change his password",
'warn' );
$res = PE_PP_CHANGE_AFTER_RESET;
......
Markdown is supported
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