Skip to content

Commit

Permalink
VeyonAuthHelper: add account validity check
Browse files Browse the repository at this point in the history
Up to now disabled or expired accounts inadvertently have been treated
as properly authenticated.

(cherry picked from commit 2043dd0)
  • Loading branch information
ysf authored and tobydox committed Mar 4, 2022
1 parent 61f7f14 commit eb622ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/platform/linux/auth-helper/VeyonAuthHelper.cpp
Expand Up @@ -92,6 +92,14 @@ int main()
{
printf( "pam_authenticate: %s\n", pam_strerror( pamh, err ) );
}
else
{
err = pam_acct_mgmt( pamh, PAM_SILENT );
if( err != PAM_SUCCESS )
{
printf( "pam_acct_mgmt: %s\n", pam_strerror( pamh, err ) );
}
}
}
else
{
Expand Down

0 comments on commit eb622ed

Please sign in to comment.