Verbosely (overridable) report failure to the user.

This commit is contained in:
Mark Murray 2001-08-10 19:07:45 +00:00
parent ceca323626
commit 2108fbd748
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81471

View file

@ -116,6 +116,10 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
* password before returning to the application.
*/
free(principal);
if (retval != PAM_SUCCESS)
PAM_VERBOSE_ERROR("Kerberos IV refuses you");
PAM_RETURN(retval);
}