openpam_constants.c revision 255364
143412Snewton/*- 243412Snewton * Copyright (c) 2001-2003 Networks Associates Technology, Inc. 343412Snewton * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav 443412Snewton * All rights reserved. 543412Snewton * 643412Snewton * This software was developed for the FreeBSD Project by ThinkSec AS and 743412Snewton * Network Associates Laboratories, the Security Research Division of 843412Snewton * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 943412Snewton * ("CBOSS"), as part of the DARPA CHATS research program. 1043412Snewton * 1143412Snewton * Redistribution and use in source and binary forms, with or without 1243412Snewton * modification, are permitted provided that the following conditions 1343412Snewton * are met: 1443412Snewton * 1. Redistributions of source code must retain the above copyright 1543412Snewton * notice, this list of conditions and the following disclaimer. 1643412Snewton * 2. Redistributions in binary form must reproduce the above copyright 1743412Snewton * notice, this list of conditions and the following disclaimer in the 1843412Snewton * documentation and/or other materials provided with the distribution. 1943412Snewton * 3. The name of the author may not be used to endorse or promote 2043412Snewton * products derived from this software without specific prior written 2143412Snewton * permission. 2243412Snewton * 2343412Snewton * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2443412Snewton * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2543412Snewton * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2643412Snewton * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2743412Snewton * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2843412Snewton * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2943412Snewton * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3043412Snewton * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3143412Snewton * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3250477Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3343412Snewton * SUCH DAMAGE. 3443412Snewton * 3543412Snewton * $Id: openpam_constants.c 491 2011-11-12 00:12:32Z des $ 3643412Snewton */ 3743412Snewton 3843412Snewton#ifdef HAVE_CONFIG_H 3943412Snewton# include "config.h" 4043412Snewton#endif 4143412Snewton 4276166Smarkm#include <security/pam_appl.h> 4376166Smarkm 4443412Snewton#include "openpam_impl.h" 4576166Smarkm 4643412Snewtonconst char *pam_err_name[PAM_NUM_ERRORS] = { 4743412Snewton "PAM_SUCCESS", 4843412Snewton "PAM_OPEN_ERR", 4943412Snewton "PAM_SYMBOL_ERR", 5043412Snewton "PAM_SERVICE_ERR", 5143412Snewton "PAM_SYSTEM_ERR", 5243412Snewton "PAM_BUF_ERR", 5343412Snewton "PAM_CONV_ERR", 5443412Snewton "PAM_PERM_DENIED", 5565302Sobrien "PAM_MAXTRIES", 5643412Snewton "PAM_AUTH_ERR", 5743412Snewton "PAM_NEW_AUTHTOK_REQD", 5843412Snewton "PAM_CRED_INSUFFICIENT", 5943412Snewton "PAM_AUTHINFO_UNAVAIL", 6043412Snewton "PAM_USER_UNKNOWN", 6143412Snewton "PAM_CRED_UNAVAIL", 6243412Snewton "PAM_CRED_EXPIRED", 6343412Snewton "PAM_CRED_ERR", 6443412Snewton "PAM_ACCT_EXPIRED", 6543412Snewton "PAM_AUTHTOK_EXPIRED", 6643412Snewton "PAM_SESSION_ERR", 6743412Snewton "PAM_AUTHTOK_ERR", 6843412Snewton "PAM_AUTHTOK_RECOVERY_ERR", 6943412Snewton "PAM_AUTHTOK_LOCK_BUSY", 7043412Snewton "PAM_AUTHTOK_DISABLE_AGING", 7143412Snewton "PAM_NO_MODULE_DATA", 7243412Snewton "PAM_IGNORE", 7343412Snewton "PAM_ABORT", 7443412Snewton "PAM_TRY_AGAIN", 7543412Snewton "PAM_MODULE_UNKNOWN", 7643412Snewton "PAM_DOMAIN_UNKNOWN" 7743412Snewton}; 7843412Snewton 7943412Snewtonconst char *pam_item_name[PAM_NUM_ITEMS] = { 8043412Snewton "(NO ITEM)", 8143412Snewton "PAM_SERVICE", 8243412Snewton "PAM_USER", 8343412Snewton "PAM_TTY", 8443412Snewton "PAM_RHOST", 8543412Snewton "PAM_CONV", 8643412Snewton "PAM_AUTHTOK", 8743412Snewton "PAM_OLDAUTHTOK", 8843412Snewton "PAM_RUSER", 8943412Snewton "PAM_USER_PROMPT", 9043412Snewton "PAM_REPOSITORY", 9143412Snewton "PAM_AUTHTOK_PROMPT", 9243412Snewton "PAM_OLDAUTHTOK_PROMPT", 9343412Snewton "PAM_HOST", 9443412Snewton}; 9543412Snewton 9643412Snewtonconst char *pam_facility_name[PAM_NUM_FACILITIES] = { 9743412Snewton [PAM_ACCOUNT] = "account", 9843412Snewton [PAM_AUTH] = "auth", 9943412Snewton [PAM_PASSWORD] = "password", 10043412Snewton [PAM_SESSION] = "session", 10143412Snewton}; 10243412Snewton 10343412Snewtonconst char *pam_control_flag_name[PAM_NUM_CONTROL_FLAGS] = { 10443412Snewton [PAM_BINDING] = "binding", 10571454Sjhb [PAM_OPTIONAL] = "optional", 10671454Sjhb [PAM_REQUIRED] = "required", 10743412Snewton [PAM_REQUISITE] = "requisite", 10843412Snewton [PAM_SUFFICIENT] = "sufficient", 10943412Snewton}; 11043412Snewton 11143412Snewtonconst char *pam_func_name[PAM_NUM_PRIMITIVES] = { 11243412Snewton "pam_authenticate", 11343412Snewton "pam_setcred", 11443412Snewton "pam_acct_mgmt", 11543412Snewton "pam_open_session", 11643412Snewton "pam_close_session", 11743412Snewton "pam_chauthtok" 11843412Snewton}; 11943412Snewton 12043412Snewtonconst char *pam_sm_func_name[PAM_NUM_PRIMITIVES] = { 12143412Snewton "pam_sm_authenticate", 12243412Snewton "pam_sm_setcred", 12343412Snewton "pam_sm_acct_mgmt", 12443412Snewton "pam_sm_open_session", 12543412Snewton "pam_sm_close_session", 12643412Snewton "pam_sm_chauthtok" 12743412Snewton}; 12843412Snewton