5 * This file was contributed by Derrick J Brashear <shadow@dementia.org>
7 * A number of operating systems have started to implement PAM.
8 * unfortunately, they have a different set of numeric values for
9 * certain constants. This file is included for compatibility's sake.
12 /* Solaris uses different constants. We redefine to those here */
13 #if defined(solaris) || (defined(__SVR4) && defined(sun))
15 /* generic for pam_* functions */
17 # define PAM_SILENT 0x80000000
19 /* flags for pam_chauthtok() */
20 # undef PAM_PRELIM_CHECK
21 # define PAM_PRELIM_CHECK 0x1
23 # undef PAM_UPDATE_AUTHTOK
24 # define PAM_UPDATE_AUTHTOK 0x2
26 /* flags for pam_setcred() */
27 # undef PAM_ESTABLISH_CRED
28 # define PAM_ESTABLISH_CRED 0x1
30 # undef PAM_DELETE_CRED
31 # define PAM_DELETE_CRED 0x2
33 # undef PAM_REINITIALIZE_CRED
34 # define PAM_REINITIALIZE_CRED 0x4
36 # define PAM_REFRESH_CRED 0x8
37 # undef PAM_REFRESH_CRED
39 /* another binary incompatibility comes from the return codes! */
42 # define PAM_CONV_ERR 6
44 # undef PAM_PERM_DENIED
45 # define PAM_PERM_DENIED 7
48 # define PAM_MAXTRIES 8
51 # define PAM_AUTH_ERR 9
53 # undef PAM_NEW_AUTHTOK_REQD
54 # define PAM_NEW_AUTHTOK_REQD 10
56 # undef PAM_CRED_INSUFFICIENT
57 # define PAM_CRED_INSUFFICIENT 11
59 # undef PAM_AUTHINFO_UNAVAIL
60 # define PAM_AUTHINFO_UNAVAIL 12
62 # undef PAM_USER_UNKNOWN
63 # define PAM_USER_UNKNOWN 13
65 # undef PAM_CRED_UNAVAIL
66 # define PAM_CRED_UNAVAIL 14
68 # undef PAM_CRED_EXPIRED
69 # define PAM_CRED_EXPIRED 15
72 # define PAM_CRED_ERR 16
74 # undef PAM_ACCT_EXPIRED
75 # define PAM_ACCT_EXPIRED 17
77 # undef PAM_AUTHTOK_EXPIRED
78 # define PAM_AUTHTOK_EXPIRED 18
80 # undef PAM_SESSION_ERR
81 # define PAM_SESSION_ERR 19
83 # undef PAM_AUTHTOK_ERR
84 # define PAM_AUTHTOK_ERR 20
86 # undef PAM_AUTHTOK_RECOVERY_ERR
87 # define PAM_AUTHTOK_RECOVERY_ERR 21
89 # undef PAM_AUTHTOK_LOCK_BUSY
90 # define PAM_AUTHTOK_LOCK_BUSY 22
92 # undef PAM_AUTHTOK_DISABLE_AGING
93 # define PAM_AUTHTOK_DISABLE_AGING 23
95 # undef PAM_NO_MODULE_DATA
96 # define PAM_NO_MODULE_DATA 24
99 # define PAM_IGNORE 25
102 # define PAM_ABORT 26
104 # undef PAM_TRY_AGAIN
105 # define PAM_TRY_AGAIN 27
107 #endif /* defined(solaris) || (defined(__SVR4) && defined(sun)) */
109 #endif /* _PAM_COMPAT_H */