summaryrefslogtreecommitdiff
path: root/libpam/pam_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpam/pam_auth.c')
-rw-r--r--libpam/pam_auth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpam/pam_auth.c b/libpam/pam_auth.c
index 1e7bc6e7..772e5edf 100644
--- a/libpam/pam_auth.c
+++ b/libpam/pam_auth.c
@@ -45,6 +45,10 @@ int pam_authenticate(pam_handle_t *pamh, int flags)
prelude_send_alert(pamh, retval);
#endif
+#if HAVE_LIBAUDIT
+ retval = _pam_auditlog(pamh, PAM_AUTHENTICATE, retval, flags);
+#endif
+
return retval;
}
@@ -67,6 +71,10 @@ int pam_setcred(pam_handle_t *pamh, int flags)
retval = _pam_dispatch(pamh, flags, PAM_SETCRED);
+#if HAVE_LIBAUDIT
+ retval = _pam_auditlog(pamh, PAM_SETCRED, retval, flags);
+#endif
+
D(("pam_setcred exit"));
return retval;