6 * This is a Linux-PAM Library Private Header file. It contains tokens
7 * that are used when we parse the configuration file(s).
9 * Please see end of file for copyright.
11 * Creator: Andrew Morgan.
18 /* an array of actions */
20 #ifndef LIBPAM_COMPILE
23 const char * const _pam_token_actions[-_PAM_ACTION_UNDEF] = {
32 /* an array of possible return values */
34 #ifndef LIBPAM_COMPILE
37 const char * const _pam_token_returns[_PAM_RETURN_VALUES+1] = {
41 "service_err", /* 3 */
44 "perm_denied", /* 6 */
46 "cred_insufficient", /* 8 */
47 "authinfo_unavail", /* 9 */
48 "user_unknown", /* 10 */
50 "new_authtok_reqd", /* 12 */
51 "acct_expired", /* 13 */
52 "session_err", /* 14 */
53 "cred_unavail", /* 15 */
54 "cred_expired", /* 16 */
56 "no_module_data", /* 18 */
58 "authtok_err", /* 20 */
59 "authtok_recover_err", /* 21 */
60 "authtok_lock_busy", /* 22 */
61 "authtok_disable_aging", /* 23 */
65 "authtok_expired", /* 27 */
66 "module_unknown", /* 28 */
68 "conv_again", /* 30 */
69 "incomplete", /* 31 */
70 /* add new return codes here */
71 "default" /* this is _PAM_RETURN_VALUES and indicates
72 the default return action */
76 * Copyright (C) 1998,2001 Andrew G. Morgan <morgan@kernel.org>
80 * Redistribution and use in source and binary forms, with or without
81 * modification, are permitted provided that the following conditions
83 * 1. Redistributions of source code must retain the above copyright
84 * notice, and the entire permission notice in its entirety,
85 * including the disclaimer of warranties.
86 * 2. Redistributions in binary form must reproduce the above copyright
87 * notice, this list of conditions and the following disclaimer in the
88 * documentation and/or other materials provided with the distribution.
89 * 3. The name of the author may not be used to endorse or promote
90 * products derived from this software without specific prior
93 * ALTERNATIVELY, this product may be distributed under the terms of
94 * the GNU Public License, in which case the provisions of the GPL are
95 * required INSTEAD OF the above restrictions. (This clause is
96 * necessary due to a potential bad interaction between the GPL and
97 * the restrictions contained in a BSD-style copyright.)
99 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
100 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
101 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
102 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
103 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
104 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
105 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
106 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
107 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
108 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
109 * OF THE POSSIBILITY OF SUCH DAMAGE.
112 #endif /* _PAM_PRIVATE_H_ */