home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / shadow-3.1.4 / config.h.sun4 < prev    next >
Encoding:
Text File  |  1992-04-05  |  3.3 KB  |  134 lines

  1. /*
  2.  * Copyright 1989, 1990, 1991, John F. Haugh II
  3.  * All rights reserved.
  4.  *
  5.  * Permission is granted to copy and create derivative works for any
  6.  * non-commercial purpose, provided this copyright notice is preserved
  7.  * in all copies of source code, or included in human readable form
  8.  * and conspicuously displayed on all copies of object code or
  9.  * distribution media.
  10.  */
  11.  
  12. /*
  13.  * Configuration file for login.
  14.  *
  15.  *    @(#)config.h.sun4    3.2    13:22:32    3/9/92 (SunOS 4.1.1)
  16.  */
  17.  
  18.  
  19. /*
  20.  * Pathname to the run-time configuration definitions file.
  21.  */
  22.  
  23. #define LOGINDEFS "/etc/login.defs"
  24.  
  25. /*
  26.  * Define SHADOWPWD to use shadow [ unreadable ] password file.
  27.  * Release 3 has a requirement that SHADOWPWD always be defined.
  28.  */
  29.  
  30. #define    SHADOWPWD
  31.  
  32. /*
  33.  * Define AUTOSHADOW to have root always copy sp_pwdp to pw_passwd
  34.  * for getpwuid() and getpwnam().  This provides compatibility for
  35.  * privileged applications which are shadow-ignorant.  YOU ARE
  36.  * ENCOURAGED TO NOT USE THIS OPTION UNLESS ABSOLUTELY NECESSARY.
  37.  */
  38.  
  39. #undef    AUTOSHADOW
  40.  
  41. /*
  42.  * Define SHADOWGRP to user shadowed group files.  This feature adds
  43.  * the concept of a group administrator.
  44.  */
  45.  
  46. #define    SHADOWGRP /**/
  47.  
  48. /*
  49.  * Define DOUBLESIZE to use 16 character passwords
  50.  */
  51.  
  52. #define DOUBLESIZE
  53.  
  54. /*
  55.  * Define AGING if you want the password aging checks made.
  56.  * Release 3 has a requirement that AGING always be defined.
  57.  */
  58.  
  59. #define    AGING
  60.  
  61. /*
  62.  * Pick your version of DBM.  If you define either DBM or NDBM, you must
  63.  * define GETPWENT.  If you define NDBM you must define GETGRENT as well.
  64.  */
  65.  
  66. /* #define    DBM    /**/
  67. #define    NDBM    /**/
  68.  
  69. /*
  70.  * Define USE_SYSLOG if you want to have SYSLOG functions included in your code.
  71.  */
  72.  
  73. #define    USE_SYSLOG
  74.  
  75. /*
  76.  * Enable RLOGIN to support the "-r" and "-h" options.
  77.  * Also enable UT_HOST if your /etc/utmp provides for a host name.
  78.  */
  79.  
  80. #define RLOGIN
  81. #define UT_HOST
  82.  
  83. /*
  84.  * Define the "success" code from ruserok().  Most modern systems use 0
  85.  * for success and -1 for failure, while certain older versions use 1
  86.  * for success and 0 for failure.  Please check your manpage to be sure.
  87.  */
  88.  
  89. #define       RUSEROK 0
  90.  
  91. /*
  92.  * Select one of the following
  93.  */
  94.  
  95. /* #define DIR_XENIX    /* include <sys/ndir.h>, use (struct direct)    */
  96. /* #define DIR_BSD    /* include <ndir.h>, use (struct direct)    */
  97. #define DIR_SYSV    /* include <dirent.h>, use (struct dirent)    */
  98.  
  99. /*
  100.  * Various system environment definitions.
  101.  */
  102.  
  103. #define    HAVE_ULIMIT    /* Define if your UNIX supports ulimit()    */
  104. #define    GETPWENT    /* Define if you want my GETPWENT(3) routines    */
  105. #define    GETGRENT    /* Define if you want my GETGRENT(3) routines    */
  106. #undef    NEED_AL64    /* Define if library does not include a64l()    */
  107. #undef    NEED_MKDIR    /* Define if system does not have mkdir()    */
  108. #undef    NEED_RMDIR    /* Define if system does not have rmdir()    */
  109. #undef    NEED_RENAME    /* Define if system does not have rename()    */
  110. #define    NEED_STRSTR    /* Define if library does not include strstr()    */
  111. #define    SIGTYPE    void    /* Type returned by signal()                    */
  112.  
  113. /*
  114.  * These definitions MUST agree with the values defined in <pwd.h>.
  115.  */
  116.  
  117. #undef    BSD_QUOTA    /* the pw_quota field exists */
  118. #define    ATT_AGE        /* the pw_age field exists */
  119. #define    ATT_COMMENT    /* the pw_comment field exists */
  120.  
  121. /*
  122.  * Define NDEBUG for production versions
  123.  */
  124.  
  125. #define    NDEBUG
  126.  
  127. /*
  128.  * Define PWDFILE and GRPFILE to the names of the password and
  129.  * group files.
  130.  */
  131.  
  132. #define    PWDFILE    "/etc/passwd"
  133. #define    GRPFILE    "/etc/group"
  134.