2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: pam_svc.h /main/3 1996/10/30 11:13:40 drk $ */
24 /*******************************************************************************
26 ** "@(#)pam_svc.h 1.4 95/09/12
28 ** Copyright 1993, 1994, 1995 Sun Microsystems, Inc. All rights reserved.
30 ** This file contains header info related to dtlogin use of PAM
31 ** (Pluggable Authentication Module) library.
33 *******************************************************************************/
35 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
36 * (c) Copyright 1993, 1994 International Business Machines Corp. *
37 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc. *
38 * (c) Copyright 1993, 1994 Novell, Inc. *
41 #ifndef _DTLOGIN_PAM_SVC_H
42 #define _DTLOGIN_PAM_SVC_H
44 #include <sys/types.h>
46 #define PAM_LOGIN_MAXTRIES 5
47 #define PAM_LOGIN_SLEEPTIME 4
48 #define PAM_LOGIN_DISABLETIME 20
54 * External procedure declarations
58 extern int _DtAuthentication(char*, char*, char*, char*, char*);
59 extern int _DtAccounting(char*, char*, char[], char*,
60 char*, pid_t, int, int);
61 extern int _DtSetCred(char*, char *, uid_t, gid_t);
62 extern int _DtSetDevPerm(char *, uid_t, gid_t);
63 extern int _DtResetDevPerm(char *);
66 extern int audit_login_save_host(char *host);
67 extern int audit_login_save_ttyn(char *ttyn);
68 extern int audit_login_save_port(void);
69 extern int audit_login_success(void);
70 extern int audit_login_save_pw(struct passwd *pwd);
71 extern int audit_login_bad_pw(void);
72 extern int audit_login_maxtrys(void);
76 #endif /* _DTLOGIN_PAM_SVC_H */