mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 14:55:12 +00:00
Give user a clue when there is a missing "account" section in the PAM config.
This commit is contained in:
@@ -139,8 +139,9 @@ pam_verify(pw, prompt, auth)
|
|||||||
"Password expired, contact your system administrator");
|
"Password expired, contact your system administrator");
|
||||||
return(AUTH_FATAL);
|
return(AUTH_FATAL);
|
||||||
case PAM_ACCT_EXPIRED:
|
case PAM_ACCT_EXPIRED:
|
||||||
log_error(NO_EXIT|NO_MAIL,
|
log_error(NO_EXIT|NO_MAIL, "%s %s",
|
||||||
"Account expired, contact your system administrator");
|
"Account expired or PAM config lacks an \"account\"",
|
||||||
|
"section for sudo, contact your system administrator");
|
||||||
return(AUTH_FATAL);
|
return(AUTH_FATAL);
|
||||||
}
|
}
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
Reference in New Issue
Block a user