1 /* $XConsortium: pam_svc.h /main/3 1996/10/30 11:13:40 drk $ */
2 /*******************************************************************************
4 ** "@(#)pam_svc.h 1.4 95/09/12
6 ** Copyright 1993, 1994, 1995 Sun Microsystems, Inc. All rights reserved.
8 ** This file contains header info related to dtlogin use of PAM
9 ** (Pluggable Authentication Module) library.
11 *******************************************************************************/
13 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
14 * (c) Copyright 1993, 1994 International Business Machines Corp. *
15 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc. *
16 * (c) Copyright 1993, 1994 Novell, Inc. *
19 #ifndef _DTLOGIN_PAM_SVC_H
20 #define _DTLOGIN_PAM_SVC_H
22 #include <sys/types.h>
24 #define PAM_LOGIN_MAXTRIES 5
25 #define PAM_LOGIN_SLEEPTIME 4
26 #define PAM_LOGIN_DISABLETIME 20
32 * External procedure declarations
36 extern int _DtAuthentication(char*, char*, char*, char*, char*);
37 extern int _DtAccounting(char*, char*, char[], char*,
38 char*, pid_t, int, int);
39 extern int _DtSetCred(char*, char *, uid_t, gid_t);
40 extern int _DtSetDevPerm(char *, uid_t, gid_t);
41 extern int _DtResetDevPerm(char *);
44 extern int audit_login_save_host(char *host);
45 extern int audit_login_save_ttyn(char *ttyn);
46 extern int audit_login_save_port(void);
47 extern int audit_login_success(void);
48 extern int audit_login_save_pw(struct passwd *pwd);
49 extern int audit_login_bad_pw(void);
50 extern int audit_login_maxtrys(void);
54 #endif /* _DTLOGIN_PAM_SVC_H */