home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / shadow-3.1.4 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-28  |  4.3 KB  |  164 lines

  1. /*
  2.  * Copyright 1989, 1990, 1991, 1992, 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    3.16    09:42:44    1/20/92
  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. #undef 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. #undef    HAVE_RLIMIT    /* Define if your UNIX supports setrlimit()     */
  105. #define    GETPWENT    /* Define if you want my GETPWENT(3) routines    */
  106. #define    GETGRENT    /* Define if you want my GETGRENT(3) routines    */
  107. #define    NEED_AL64    /* Define if library does not include a64l()    */
  108. #define    NEED_MKDIR    /* Define if system does not have mkdir()    */
  109. #define    NEED_RMDIR    /* Define if system does not have rmdir()    */
  110. #define    NEED_RENAME    /* Define if system does not have rename()    */
  111. #define    NEED_STRSTR    /* Define if library does not include strstr()    */
  112. #undef    NEED_PUTPWENT    /* Define if library does not include putpwent()*/
  113. #define    SIGTYPE    int    /* Type returned by signal()                    */
  114.  
  115. /*
  116.  * These definitions MUST agree with the values defined in <pwd.h>.
  117.  */
  118.  
  119. #undef    BSD_QUOTA    /* the pw_quota field exists */
  120. #define    ATT_AGE        /* the pw_age field exists */
  121. #define    ATT_COMMENT    /* the pw_comment field exists */
  122.  
  123. /*
  124.  * Define NDEBUG for production versions
  125.  */
  126.  
  127. #define    NDEBUG
  128.  
  129. /*
  130.  * Define PWDFILE and GRPFILE to the names of the password and
  131.  * group files.
  132.  */
  133.  
  134. #define    PWDFILE    "/etc/passwd"
  135. #define    GRPFILE    "/etc/group"
  136.  
  137. /*
  138.  * The structure of the utmp file.  There are two kinds of UTMP files,
  139.  * "BSD" and "USG".  "BSD" has no PID or type information, "USG" does.
  140.  * If you define neither of these, the type will be defaulted by using
  141.  * BSD, SUN, SYS3 and USG defines.
  142.  */
  143.  
  144. #define USG_UTMP    /**/
  145. /* #define BSD_UTMP    /**/
  146.  
  147. #if !defined(USG_UTMP) && !defined(BSD_UTMP)
  148. #if defined(BSD) || defined(SYS3) || defined(SUN)
  149. #define    BSD_UTMP
  150. #else
  151. #define USG_UTMP
  152. #endif    /* BSD || SYS3 || SUN */
  153. #endif /* !USG_UTMP || !BSD_UTMP */
  154.  
  155. /*
  156.  * Telinit program.  If your system uses /etc/telinit to change run
  157.  * level, define TELINIT and then define the RUNLEVEL macro to be the
  158.  * run-level to switch INIT to.  This is used by sulogin to change
  159.  * from single user to multi-user mode.
  160.  */
  161.  
  162. #define    TELINIT        /**/
  163. #define    RUNLEVEL    "2"    /**/
  164.