--- pam-0.79.orig/Linux-PAM/modules/pam_listfile/pam_listfile.c 2007-03-29
22:43:36.000000000 +0200
+++ pam-0.79/Linux-PAM/modules/pam_listfile/pam_listfile.c 2007-03-29
22:49:24.000000000 +0200
@@ -35,6 +35,7 @@
*/
#define PAM_SM_AUTH
+#define PAM_SM_SESSION
#define PAM_SM_ACCOUNT
#include <security/pam_modules.h>
@@ -412,6 +413,23 @@
return pam_sm_authenticate(pamh, 0, argc, argv);
}
+PAM_EXTERN
+int pam_sm_open_session(pam_handle_t *pamh, int flags,
+ int argc, const char **argv)
+{
+ int res = pam_sm_authenticate(pamh, 0, argc, argv);
+ if (res == PAM_AUTH_ERR)
+ return PAM_SESSION_ERR;
+ return res;
+}
+
+PAM_EXTERN
+int pam_sm_close_session(pam_handle_t *pamh, int flags,
+ int argc, const char **argv)
+{
+ return pam_sm_open_session(pamh, 0, argc, argv);
+}
+
#ifdef PAM_STATIC
/* static module data */
@@ -421,8 +439,8 @@
pam_sm_authenticate,
pam_sm_setcred,
pam_sm_acct_mgmt,
- NULL,
- NULL,
+ pam_sm_open_session,
+ pam_sm_close_session,
NULL,
};
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]