summaryrefslogtreecommitdiff
path: root/pam_tacplus.h
diff options
context:
space:
mode:
authorchalcy0n <jeroen@jeroennijhof.nl>2013-04-28 03:57:15 -0700
committerchalcy0n <jeroen@jeroennijhof.nl>2013-04-28 03:57:15 -0700
commit10df9486a13dc38349e0e7e0fbe9df35f0750071 (patch)
treeee3b25478b2ba06fe7850a5615d0a37ed419e7fd /pam_tacplus.h
parent5f630f12babd86f1b3b3fc1bd40a0fe042826780 (diff)
parentbb9f348decdd37b4d126bff67ed1e913eb28c3cb (diff)
downloadpam_tacplus-10df9486a13dc38349e0e7e0fbe9df35f0750071.tar.gz
pam_tacplus-10df9486a13dc38349e0e7e0fbe9df35f0750071.zip
Merge pull request #6 from walterdejong/master
cleanup stuff
Diffstat (limited to 'pam_tacplus.h')
-rw-r--r--pam_tacplus.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/pam_tacplus.h b/pam_tacplus.h
index c65212d..b2f2b3c 100644
--- a/pam_tacplus.h
+++ b/pam_tacplus.h
@@ -19,6 +19,18 @@
* See `CHANGES' file for revision history.
*/
+#ifndef PAM_TACPLUS_H
+#define PAM_TACPLUS_H
+
+/* define these before including PAM headers */
+#define PAM_SM_AUTH
+#define PAM_SM_ACCOUNT
+#define PAM_SM_SESSION
+/* #define PAM_SM_PASSWORD */
+
+#include <security/pam_appl.h>
+#include <security/pam_modules.h>
+
/* pam_tacplus command line options */
#define PAM_TAC_DEBUG 0x01
#define PAM_TAC_ACCT 0x02 /* account on all specified servers */
@@ -31,5 +43,8 @@
#define PAM_TAC_VPAT 8
#ifndef PAM_EXTERN
- #define PAM_EXTERN extern
+ #define PAM_EXTERN extern
#endif
+
+#endif /* PAM_TACPLUS_H */
+