123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /* $XConsortium: pam_modules.h /main/5 1996/05/09 04:25:54 drk $ */
- /*
- * Copyright (c) 1992-1995, by Sun Microsystems, Inc.
- * All rights reserved.
- */
- #ifndef _PAM_MODULES_H
- #define _PAM_MODULES_H
- #pragma ident "@(#)pam_modules.h 1.20 96/02/02 SMI" /* PAM 2.6 */
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern int
- pam_sm_authenticate(
- pam_handle_t *pamh,
- int flags,
- int argc,
- const char **argv);
- extern int
- pam_sm_setcred(
- pam_handle_t *pamh,
- int flags,
- int argc,
- const char **argv);
- extern int
- pam_sm_acct_mgmt(
- pam_handle_t *pamh,
- int flags,
- int argc,
- const char **argv);
- extern int
- pam_sm_open_session(
- pam_handle_t *pamh,
- int flags,
- int argc,
- const char **argv);
- extern int
- pam_sm_close_session(
- pam_handle_t *pamh,
- int flags,
- int argc,
- const char **argv);
- /*
- * Be careful - there are flags defined for pam_chauthtok() in
- * pam_appl.h also.
- */
- #define PAM_PRELIM_CHECK 1
- #define PAM_UPDATE_AUTHTOK 2
- #define PAM_REP_DEFAULT 0x0
- #define PAM_REP_FILES 0x01
- #define PAM_REP_NIS 0x02
- #define PAM_REP_NISPLUS 0x04
- #define PAM_OPWCMD 0x08 /* for nispasswd, yppasswd */
- #define IS_FILES(x) ((x & PAM_REP_FILES) == PAM_REP_FILES)
- #define IS_NIS(x) ((x & PAM_REP_NIS) == PAM_REP_NIS)
- #define IS_NISPLUS(x) ((x & PAM_REP_NISPLUS) == PAM_REP_NISPLUS)
- #define IS_OPWCMD(x) ((x & PAM_OPWCMD) == PAM_OPWCMD)
- extern int
- pam_sm_chauthtok(
- pam_handle_t *pamh,
- int flags,
- int argc,
- const char **argv);
- #ifdef __cplusplus
- }
- #endif
- #endif /* _PAM_MODULES_H */
|