pam_svc.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  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)
  10. * any later version.
  11. *
  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
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: pam_svc.h /main/3 1996/10/30 11:13:40 drk $ */
  24. /*******************************************************************************
  25. **
  26. ** "@(#)pam_svc.h 1.4 95/09/12
  27. **
  28. ** Copyright 1993, 1994, 1995 Sun Microsystems, Inc. All rights reserved.
  29. **
  30. ** This file contains header info related to dtlogin use of PAM
  31. ** (Pluggable Authentication Module) library.
  32. **
  33. *******************************************************************************/
  34. /* *
  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. *
  39. */
  40. #ifndef _DTLOGIN_PAM_SVC_H
  41. #define _DTLOGIN_PAM_SVC_H
  42. #include <sys/types.h>
  43. #define PAM_LOGIN_MAXTRIES 5
  44. #define PAM_LOGIN_SLEEPTIME 4
  45. #define PAM_LOGIN_DISABLETIME 20
  46. /*
  47. * External procedure declarations
  48. */
  49. extern int _DtAuthentication(char*, char*, char*, char*, char*);
  50. extern int _DtAccounting(char*, char*, char[], char*,
  51. char*, pid_t, int, int);
  52. extern int _DtSetCred(char*, char *, uid_t, gid_t);
  53. extern int _DtSetDevPerm(char *, uid_t, gid_t);
  54. extern int _DtResetDevPerm(char *);
  55. #ifdef sun
  56. extern int audit_login_save_host(char *host);
  57. extern int audit_login_save_ttyn(char *ttyn);
  58. extern int audit_login_save_port(void);
  59. extern int audit_login_success(void);
  60. extern int audit_login_save_pw(struct passwd *pwd);
  61. extern int audit_login_bad_pw(void);
  62. extern int audit_login_maxtrys(void);
  63. #endif /* sun */
  64. #endif /* _DTLOGIN_PAM_SVC_H */