home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume38 / shadow / part11 / config.h.sun4 < prev    next >
Text File  |  1993-08-14  |  4KB  |  157 lines

  1. /*
  2.  * Copyright 1989, 1990, 1991, 1993, 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.3    20:39:30    23 May 1993 (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.  Define SW_CRYPT
  50.  * to use 80 character passwords with SecureWare[tm]'s method of
  51.  * generating ciphertext.
  52.  */
  53.  
  54. #define DOUBLESIZE
  55. #undef    SW_CRYPT
  56.  
  57. /*
  58.  * Define AGING if you want the password aging checks made.
  59.  * Release 3 has a requirement that AGING always be defined.
  60.  */
  61.  
  62. #define    AGING
  63.  
  64. /*
  65.  * Pick your version of DBM.  If you define either DBM or NDBM, you must
  66.  * define GETPWENT.  If you define NDBM you must define GETGRENT as well.
  67.  */
  68.  
  69. /* #define    DBM    /**/
  70. #define    NDBM    /**/
  71.  
  72. /*
  73.  * Define USE_SYSLOG if you want to have SYSLOG functions included in your code.
  74.  */
  75.  
  76. #define    USE_SYSLOG
  77.  
  78. /*
  79.  * Enable RLOGIN to support the "-r" and "-h" options.
  80.  * Also enable UT_HOST if your /etc/utmp provides for a host name.
  81.  */
  82.  
  83. #define RLOGIN
  84. #define UT_HOST
  85.  
  86. /*
  87.  * Define the "success" code from ruserok().  Most modern systems use 0
  88.  * for success and -1 for failure, while certain older versions use 1
  89.  * for success and 0 for failure.  Please check your manpage to be sure.
  90.  */
  91.  
  92. #define       RUSEROK 0
  93.  
  94. /*
  95.  * Select one of the following
  96.  */
  97.  
  98. /* #define DIR_XENIX    /* include <sys/ndir.h>, use (struct direct)    */
  99. /* #define DIR_BSD    /* include <ndir.h>, use (struct direct)    */
  100. #define DIR_SYSV    /* include <dirent.h>, use (struct dirent)    */
  101.  
  102. /*
  103.  * Various system environment definitions.
  104.  */
  105.  
  106. #define    HAVE_ULIMIT    /* Define if your UNIX supports ulimit()    */
  107. #define    GETPWENT    /* Define if you want my GETPWENT(3) routines    */
  108. #define    GETGRENT    /* Define if you want my GETGRENT(3) routines    */
  109. #undef    NEED_AL64    /* Define if library does not include a64l()    */
  110. #undef    NEED_MKDIR    /* Define if system does not have mkdir()    */
  111. #undef    NEED_RMDIR    /* Define if system does not have rmdir()    */
  112. #undef    NEED_RENAME    /* Define if system does not have rename()    */
  113. #define    NEED_STRSTR    /* Define if library does not include strstr()    */
  114. #undef    NEED_PUTPWENT    /* Define if library does not include putpwent()*/
  115. #define    SIGTYPE    void    /* Type returned by signal()                    */
  116.  
  117. /*
  118.  * These definitions MUST agree with the values defined in <pwd.h>.
  119.  */
  120.  
  121. #undef    BSD_QUOTA    /* the pw_quota field exists */
  122. #define    ATT_AGE        /* the pw_age field exists */
  123. #define    ATT_COMMENT    /* the pw_comment field exists */
  124.  
  125. #define    UID_T    uid_t    /* set to be the type of UID's */
  126. #define    GID_T    gid_t    /* set to be the type of GID's */
  127.  
  128. #ifndef    UID_T
  129. #if defined(SVR4) || defined(_POSIX_SOURCE)
  130. #define    UID_T    uid_t
  131. #else
  132. #define    UID_T    int
  133. #endif
  134. #endif
  135.  
  136. #ifndef    GID_T
  137. #if defined(SVR4) || defined(_POSIX_SOURCE)
  138. #define    GID_T    gid_t
  139. #else
  140. #define    GID_T    int
  141. #endif
  142. #endif
  143.  
  144. /*
  145.  * Define NDEBUG for production versions
  146.  */
  147.  
  148. #define    NDEBUG
  149.  
  150. /*
  151.  * Define PWDFILE and GRPFILE to the names of the password and
  152.  * group files.
  153.  */
  154.  
  155. #define    PWDFILE    "/etc/passwd"
  156. #define    GRPFILE    "/etc/group"
  157.