summaryrefslogtreecommitdiff
path: root/Linux-PAM/libpam/pam_account.c
diff options
context:
space:
mode:
Diffstat (limited to 'Linux-PAM/libpam/pam_account.c')
-rw-r--r--Linux-PAM/libpam/pam_account.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/Linux-PAM/libpam/pam_account.c b/Linux-PAM/libpam/pam_account.c
new file mode 100644
index 00000000..572acc47
--- /dev/null
+++ b/Linux-PAM/libpam/pam_account.c
@@ -0,0 +1,27 @@
+/* pam_account.c - PAM Account Management */
+
+#include "pam_private.h"
+
+#include <stdio.h>
+
+int pam_acct_mgmt(pam_handle_t *pamh, int flags)
+{
+ int retval;
+
+ D(("called"));
+
+ IF_NO_PAMH("pam_acct_mgmt", pamh, PAM_SYSTEM_ERR);
+
+ if (__PAM_FROM_MODULE(pamh)) {
+ D(("called from module!?"));
+ return PAM_SYSTEM_ERR;
+ }
+
+ retval = _pam_dispatch(pamh, flags, PAM_ACCOUNT);
+
+#ifdef HAVE_LIBAUDIT
+ retval = _pam_auditlog(pamh, PAM_ACCOUNT, retval, flags);
+#endif
+
+ return retval;
+}