summaryrefslogtreecommitdiff
path: root/pam_tacplus.h
diff options
context:
space:
mode:
authorWalter de Jong <walter@heiho.net>2013-03-28 21:49:33 +0100
committerWalter de Jong <walter@heiho.net>2013-03-28 21:49:33 +0100
commita2ee53a0868a5bd5612c4d6529ae460b3e7dd4ab (patch)
treed0cff66509d229e7bea3f8f1cdeeaefaedcadbed /pam_tacplus.h
parent73e1f110666d7aee4e7a5a5d865c1bf54cded84a (diff)
downloadpam_tacplus-a2ee53a0868a5bd5612c4d6529ae460b3e7dd4ab.tar.gz
pam_tacplus-a2ee53a0868a5bd5612c4d6529ae460b3e7dd4ab.zip
more stuff belongs in headers
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 */
+