summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-08-10 19:12:59 +0000
committermarkm <markm@FreeBSD.org>2001-08-10 19:12:59 +0000
commit30eda03ef6f4986dee9d8c83532af8988d0df7ce (patch)
tree74b5e428b179e3dd588cdb35de22f48b97fdbd48 /lib
parent846c7876bea6fc8374c4ddff654342f3de18ec8a (diff)
downloadFreeBSD-src-30eda03ef6f4986dee9d8c83532af8988d0df7ce.zip
FreeBSD-src-30eda03ef6f4986dee9d8c83532af8988d0df7ce.tar.gz
Verbose logging, overridable verbose error reporting.
Diffstat (limited to 'lib')
-rw-r--r--lib/libpam/modules/pam_opie/pam_opie.c8
-rw-r--r--lib/libpam/modules/pam_radius/pam_radius.c11
-rw-r--r--lib/libpam/modules/pam_tacplus/pam_tacplus.c1
3 files changed, 18 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_opie/pam_opie.c b/lib/libpam/modules/pam_opie/pam_opie.c
index dc5c814..c68beef 100644
--- a/lib/libpam/modules/pam_opie/pam_opie.c
+++ b/lib/libpam/modules/pam_opie/pam_opie.c
@@ -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");
diff --git a/lib/libpam/modules/pam_radius/pam_radius.c b/lib/libpam/modules/pam_radius/pam_radius.c
index 781e1d4..ad4277a 100644
--- a/lib/libpam/modules/pam_radius/pam_radius.c
+++ b/lib/libpam/modules/pam_radius/pam_radius.c
@@ -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");
diff --git a/lib/libpam/modules/pam_tacplus/pam_tacplus.c b/lib/libpam/modules/pam_tacplus/pam_tacplus.c
index 786d303..63f910d 100644
--- a/lib/libpam/modules/pam_tacplus/pam_tacplus.c
+++ b/lib/libpam/modules/pam_tacplus/pam_tacplus.c
@@ -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:
OpenPOWER on IntegriCloud