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

  1. /*
  2.  * Copyright 1989, 1990, 1991, 1992, 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.  * This software is provided on an AS-IS basis and the author makes
  12.  * no warrantee of any kind.
  13.  */
  14.  
  15. /*
  16.  * Configuration file for login.
  17.  *
  18.  *    @(#)config.h.svr4    3.3    07:18:05    03 Jun 1993    (SVR4)
  19.  */
  20.  
  21.  
  22. /*
  23.  * Pathname to the run-time configuration definitions file.
  24.  */
  25.  
  26. #define LOGINDEFS "/etc/login.defs"
  27.  
  28. /*
  29.  * Define SHADOWPWD to use shadow [ unreadable ] password file.
  30.  * Release 3 has a requirement that SHADOWPWD always be defined.
  31.  */
  32.  
  33. #define    SHADOWPWD
  34.  
  35. /*
  36.  * Define AUTOSHADOW to have root always copy sp_pwdp to pw_passwd
  37.  * for getpwuid() and getpwnam().  This provides compatibility for
  38.  * privileged applications which are shadow-ignorant.  YOU ARE
  39.  * ENCOURAGED TO NOT USE THIS OPTION UNLESS ABSOLUTELY NECESSARY.
  40.  *
  41.  * SVR4 has always had /etc/shadow
  42.  */
  43.  
  44. #undef    AUTOSHADOW
  45.  
  46. /*
  47.  * Define SHADOWGRP to user shadowed group files.  This feature adds
  48.  * the concept of a group administrator.
  49.  */
  50.  
  51. /* #define    SHADOWGRP    /**/
  52.  
  53. /*
  54.  * Define DOUBLESIZE to use 16 character passwords.  Define SW_CRYPT
  55.  * to use 80 character passwords with SecureWare[tm]'s method of
  56.  * generating ciphertext.
  57.  */
  58.  
  59. #define DOUBLESIZE
  60. #undef    SW_CRYPT
  61.  
  62. /*
  63.  * Define AGING if you want the password aging checks made.
  64.  * Release 3 has a requirement that AGING always be defined.
  65.  */
  66.  
  67. #define    AGING
  68.  
  69. /*
  70.  * Pick your version of DBM.  If you define either DBM or NDBM, you must
  71.  * define GETPWENT.  If you define NDBM you must define GETGRENT as well.
  72.  *
  73.  * SVR4 doesn't come with mkpasswd.
  74.  */
  75.  
  76. /* #define    DBM    /**/
  77. /* #define    NDBM    /**/
  78.  
  79. /*
  80.  * Define USE_SYSLOG if you want to have SYSLOG functions included in your code.
  81.  *
  82.  * SVR4 includes syslog()
  83.  */
  84.  
  85. #define    USE_SYSLOG
  86.  
  87. /*
  88.  * Enable RLOGIN to support the "-r" and "-h" options.
  89.  * Don't define UT_HOST, it's in utmpx.
  90.  */
  91.  
  92. #define RLOGIN
  93. #undef UT_HOST
  94.  
  95. /*
  96.  * Define the "success" code from ruserok().  Most modern systems use 0
  97.  * for success and -1 for failure, while certain older versions use 1
  98.  * for success and 0 for failure.  Please check your manpage to be sure.
  99.  */
  100.  
  101. #define    RUSEROK    0
  102.  
  103. /*
  104.  * Use SVR4 directory functions.
  105.  */
  106.  
  107. #define DIR_SYSV    /* include <dirent.h>, use (struct dirent)    */
  108.  
  109. /*
  110.  * Various system environment definitions.
  111.  */
  112.  
  113. #undef    HAVE_ULIMIT    /* Define if your UNIX supports ulimit()    */
  114. #define    HAVE_RLIMIT    /* Define if your UNIX supports setrlimit()    */
  115. #define    GETPWENT    /* Define if you want my GETPWENT(3) routines    */
  116. #undef    GETGRENT    /* Define if you want my GETGRENT(3) routines    */
  117. #undef    NEED_AL64    /* Define if library does not include a64l()    */
  118. #undef    NEED_MKDIR    /* Define if system does not have mkdir()    */
  119. #undef    NEED_RMDIR    /* Define if system does not have rmdir()    */
  120. #undef    NEED_RENAME    /* Define if system does not have rename()    */
  121. #undef    NEED_STRSTR    /* Define if library does not include strstr()    */
  122. #undef    NEED_PUTPWENT    /* Define if library does not include putpwent()*/
  123. #define    SIGTYPE    void    /* Type returned by signal()                    */
  124.  
  125. /*
  126.  * These definitions MUST agree with the values defined in <pwd.h>.
  127.  */
  128.  
  129. #undef    BSD_QUOTA    /* the pw_quota field exists */
  130. #define    ATT_AGE        /* the pw_age field exists */
  131. #define    ATT_COMMENT    /* the pw_comment field exists */
  132.  
  133. #define    UID_T    uid_t    /* set to be the type of UID's */
  134. #define    GID_T    gid_t    /* set to be the type of GID's */
  135.  
  136. #ifndef    UID_T
  137. #if defined(SVR4) || defined(_POSIX_SOURCE)
  138. #define    UID_T    uid_t
  139. #else
  140. #define    UID_T    int
  141. #endif
  142. #endif
  143.  
  144. #ifndef    GID_T
  145. #if defined(SVR4) || defined(_POSIX_SOURCE)
  146. #define    GID_T    gid_t
  147. #else
  148. #define    GID_T    int
  149. #endif
  150. #endif
  151.  
  152. /*
  153.  * Define NDEBUG for production versions
  154.  */
  155.  
  156. #define    NDEBUG
  157.  
  158. /*
  159.  * Define PWDFILE and GRPFILE to the names of the password and
  160.  * group files.
  161.  */
  162.  
  163. #define    PWDFILE    "/etc/passwd"
  164. #define    GRPFILE    "/etc/group"
  165.  
  166. /*
  167.  * This is SVR4.
  168.  */
  169.  
  170. #define    USG_UTMP
  171.  
  172. /*
  173.  * Telinit program.  If your system uses /etc/telinit to change run
  174.  * level, define TELINIT and then define the RUNLEVEL macro to be the
  175.  * run-level to switch INIT to.  This is used by sulogin to change
  176.  * from single user to multi-user mode.
  177.  */
  178.  
  179. #define    TELINIT        /**/
  180. #define    RUNLEVEL    "2"    /**/
  181.  
  182. /*
  183.  * Crontab and atrm.  If your system can "crontab -r -u <user>", define
  184.  * HAS_CRONTAB.  If your system can "atrm <user>", define HAS_ATRM.
  185.  *
  186.  * SVR4 has both of these.
  187.  */
  188.  
  189. #define    HAS_CRONTAB
  190. #define    HAS_ATRM
  191.