1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Verbose logging, overridable verbose error reporting.

This commit is contained in:
Mark Murray 2001-08-10 19:12:59 +00:00
parent b04259a5cf
commit 65550d9b5a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81473
3 changed files with 18 additions and 2 deletions

View File

@ -124,7 +124,13 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
PAM_EXTERN int
pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv)
{
return PAM_SUCCESS;
struct options options;
pam_std_option(&options, NULL, argc, argv);
PAM_LOG("Options processed");
PAM_RETURN(PAM_SUCCESS);
}
PAM_MODULE_ENTRY("pam_opie");

View File

@ -285,6 +285,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
case RAD_ACCESS_REJECT:
rad_close(radh);
PAM_VERBOSE_ERROR("Radius rejection");
PAM_RETURN(PAM_AUTH_ERR);
case RAD_ACCESS_CHALLENGE:
@ -299,12 +300,14 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
syslog(LOG_CRIT, "rad_send_request: %s",
rad_strerror(radh));
rad_close(radh);
PAM_VERBOSE_ERROR("Radius failure");
PAM_RETURN(PAM_AUTHINFO_UNAVAIL);
default:
syslog(LOG_CRIT,
"rad_send_request: unexpected return value");
rad_close(radh);
PAM_VERBOSE_ERROR("Radius error");
PAM_RETURN(PAM_SERVICE_ERR);
}
}
@ -313,7 +316,13 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
PAM_EXTERN int
pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv)
{
return PAM_SUCCESS;
struct options options;
pam_std_option(&options, NULL, argc, argv);
PAM_LOG("Options processed");
PAM_RETURN(PAM_SUCCESS);
}
PAM_MODULE_ENTRY("pam_radius");

View File

@ -202,6 +202,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
case TAC_AUTHEN_STATUS_FAIL:
tac_close(tach);
PAM_VERBOSE_ERROR("TACACS+ authentication failed");
PAM_RETURN(PAM_AUTH_ERR);
case TAC_AUTHEN_STATUS_GETUSER: