2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Give user a clue when there is a missing "account" section in the PAM config.

This commit is contained in:
Todd C. Miller
2005-02-05 18:01:55 +00:00
parent e6f51aa1af
commit 6548e82f20

View File

@@ -139,8 +139,9 @@ pam_verify(pw, prompt, auth)
"Password expired, contact your system administrator");
return(AUTH_FATAL);
case PAM_ACCT_EXPIRED:
log_error(NO_EXIT|NO_MAIL,
"Account expired, contact your system administrator");
log_error(NO_EXIT|NO_MAIL, "%s %s",
"Account expired or PAM config lacks an \"account\"",
"section for sudo, contact your system administrator");
return(AUTH_FATAL);
}
/* FALLTHROUGH */