aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeraphim Mellos <mellos@ceid.upatras.gr>2008-07-21 18:40:17 +0300
committerSeraphim Mellos <mellos@ceid.upatras.gr>2008-07-21 18:40:17 +0300
commit6f11cc854bfc894c52bcdc40ac51603d2079aeca (patch)
tree77f51ad71fba498abda28fe67996a6a4b0127ed5
parentRedesigned pam_securetty (diff)
downloadopenpam-modules-6f11cc854bfc894c52bcdc40ac51603d2079aeca.tar.gz
openpam-modules-6f11cc854bfc894c52bcdc40ac51603d2079aeca.tar.bz2
openpam-modules-6f11cc854bfc894c52bcdc40ac51603d2079aeca.zip
Started pam_shells
-rw-r--r--modules/pam_shells/pam_shells.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/pam_shells/pam_shells.c b/modules/pam_shells/pam_shells.c
index e69de29..8b1397c 100644
--- a/modules/pam_shells/pam_shells.c
+++ b/modules/pam_shells/pam_shells.c
@@ -0,0 +1,18 @@
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <pwd.h>
+
+#define PAM_SM_AUTH
+
+#include <security/pam_appl.h>
+#include <security/pam_modules.h>
+#include <security/pam_mod_misc.h>
+
+PAM_EXTERN int
+pam_sm_authenticate(pam_handle_t * pamh, int flags,
+ int argc, const char * argv[])
+{
+