home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2083 / config.h next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  1.4 KB  |  64 lines

  1. /*
  2.  * Copyright 1989, 1990, John F. Haugh II
  3.  * All rights reserved.
  4.  *
  5.  * Use, duplication, and disclosure prohibited without
  6.  * the express written permission of the author.
  7.  */
  8.  
  9. /*
  10.  * Configuration file for login. (Hacked on badly ...)
  11.  *
  12.  *    @(#)config.h    2.6    08:26:28    8/20/90
  13.  */
  14.  
  15. /*
  16.  * Define SHADOWPWD to use shadow [ unreadable ] password file
  17.  */
  18.  
  19. #define    SHADOWPWD
  20.  
  21. /*
  22.  * Define DOUBLESIZE to use 16 character passwords
  23.  */
  24.  
  25. #define DOUBLESIZE
  26.  
  27. /*
  28.  * Define MAXDAYS to be the default maximum number of days a password
  29.  * is valid for when converting to shadow passwords.  Define MINDAYS
  30.  * to be the minimum number of days before a password may be changed.
  31.  * See pwconv.c for more details.
  32.  */
  33.  
  34. #define    MAXDAYS    10000
  35. #define    MINDAYS    0
  36.  
  37. /*
  38.  * Define WARNAGE to be the number of days notice a user receives
  39.  * of a soon to expire password.  Setting this to a value other than
  40.  * -1 will force SVR4-style shadow password entries to be emitted.
  41.  */
  42.  
  43. #define    WARNAGE    10
  44.  
  45. /*
  46.  * Pick your version of DBM.  Only DBM is presently supported, NDBM will
  47.  * follow.  You must also define the GETPWENT macro below.
  48.  */
  49.  
  50. #define    DBM
  51.  
  52. /*
  53.  * Wierd stuff follows ...
  54.  *
  55.  *    The following macros exist solely to override stuff ...
  56.  *    You will probably want to change their values to suit your
  57.  *    fancy.
  58.  */
  59.  
  60. #define    UMASK        022
  61.  
  62. #define    FGETPWENT    /* Define if library does not include FGETPWENT */
  63. #define    GETPWENT    /* Define if you want my GETPWENT(3) routines */
  64.