home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / source / local.h < prev    next >
C/C++ Source or Header  |  1998-03-27  |  6KB  |  188 lines

  1. /* Copyright (C) 1995-1998 Samba-Team */
  2. /* Copyright (C) 1998 John H Terpstra <jht@aquasoft.com.au> */
  3.  
  4. /* local definitions for file server */
  5. #ifndef _LOCAL_H
  6. #define _LOCAL_H
  7.  
  8. /* This defines the section name in the configuration file that will contain */
  9. /* global parameters - that is, parameters relating to the whole server, not */
  10. /* just services. This name is then reserved, and may not be used as a       */
  11. /* a service name. It will default to "global" if not defined here.          */
  12. #define GLOBAL_NAME "global"
  13. #define GLOBAL_NAME2 "globals"
  14.  
  15. /* This defines the section name in the configuration file that will
  16.    refer to the special "homes" service */
  17. #define HOMES_NAME "homes"
  18.  
  19. /* This defines the section name in the configuration file that will
  20.    refer to the special "printers" service */
  21. #define PRINTERS_NAME "printers"
  22.  
  23. /* Yves Gaige <yvesg@hptnodur.grenoble.hp.com> requested this */
  24. /* Set to 8 if old clients break because of this, the max value is 15 */
  25. #define MAXPRINTERLEN 15
  26.  
  27. /* define what facility to use for syslog */
  28. #ifndef SYSLOG_FACILITY
  29. #define SYSLOG_FACILITY LOG_DAEMON
  30. #endif
  31.  
  32. /* set these to define the limits of the server. NOTE These are on a
  33.    per-client basis. Thus any one machine can't connect to more than
  34.    MAX_CONNECTIONS services, but any number of machines may connect at
  35.    one time. */
  36. #define MAX_CONNECTIONS 127
  37. #define MAX_OPEN_FILES 100
  38.  
  39. /* Default size of shared memory used for share mode locking */
  40. #ifndef SHMEM_SIZE
  41. #define SHMEM_SIZE (1024*MAX_OPEN_FILES)
  42. #endif
  43.  
  44. /* the max number of connections that the smbstatus program will show */
  45. #define MAXSTATUS 1000
  46.  
  47. /* max number of directories open at once */
  48. /* note that with the new directory code this no longer requires a
  49.    file handle per directory, but large numbers do use more memory */
  50. #define MAXDIR 64
  51.  
  52. #define WORDMAX 0xFFFF
  53.  
  54. /* the maximum password length before we declare a likely attack */
  55. #define MAX_PASS_LEN 200
  56.  
  57. /* separators for lists */
  58. #define LIST_SEP " \t,;:\n\r"
  59.  
  60. #ifndef LOCKDIR
  61. /* this should have been set in the Makefile */
  62. #define LOCKDIR "/tmp/samba"
  63. #endif
  64.  
  65. /* this is where browse lists are kept in the lock dir */
  66. #define SERVER_LIST "browse.dat"
  67.  
  68. /* shall guest entries in printer queues get changed to user entries,
  69.    so they can be deleted using the windows print manager? */
  70. #define LPQ_GUEST_TO_USER
  71.  
  72. /* shall filenames with illegal chars in them get mangled in long
  73.    filename listings? */
  74. #define MANGLE_LONG_FILENAMES 
  75.  
  76. /* define this if you want to stop spoofing with .. and soft links
  77.    NOTE: This also slows down the server considerably */
  78. #define REDUCE_PATHS
  79.  
  80. /* the size of the directory cache */
  81. #define DIRCACHESIZE 20
  82.  
  83. /* what type of filesystem do we want this to show up as in a NT file
  84.    manager window? */
  85. #define FSTYPE_STRING "Samba"
  86.  
  87.  
  88. /* the default guest account - normally set in the Makefile or smb.conf */
  89. #ifndef GUEST_ACCOUNT
  90. #define GUEST_ACCOUNT "nobody"
  91. #endif
  92.  
  93. /* do you want smbd to send a 1 byte packet to nmbd to trigger it to start 
  94.    when smbd starts? */
  95. #ifndef PRIME_NMBD
  96. #define PRIME_NMBD 1
  97. #endif
  98.  
  99. /* do you want session setups at user level security with a invalid
  100.    password to be rejected or allowed in as guest? WinNT rejects them
  101.    but it can be a pain as it means "net view" needs to use a password 
  102.  
  103.    You have 3 choices:
  104.  
  105.    GUEST_SESSSETUP = 0 means session setups with an invalid password
  106.    are rejected.
  107.  
  108.    GUEST_SESSSETUP = 1 means session setups with an invalid password
  109.    are rejected, unless the username does not exist, in which case it
  110.    is treated as a guest login
  111.  
  112.    GUEST_SESSSETUP = 2 means session setups with an invalid password
  113.    are treated as a guest login
  114.  
  115.    Note that GUEST_SESSSETUP only has an effect in user or server
  116.    level security.
  117.    */
  118. #ifndef GUEST_SESSSETUP
  119. #define GUEST_SESSSETUP 0
  120. #endif
  121.  
  122. /* the default pager to use for the client "more" command. Users can
  123.    override this with the PAGER environment variable */
  124. #ifndef PAGER
  125. #define PAGER "more"
  126. #endif
  127.  
  128. /* the size of the uid cache used to reduce valid user checks */
  129. #define UID_CACHE_SIZE 4
  130.  
  131. /* the following control timings of various actions. Don't change 
  132.    them unless you know what you are doing. These are all in seconds */
  133. #define DEFAULT_SMBD_TIMEOUT (60*60*24*7)
  134. #define SMBD_RELOAD_CHECK (60)
  135. #define IDLE_CLOSED_TIMEOUT (60)
  136. #define DPTR_IDLE_TIMEOUT (120)
  137. #define SMBD_SELECT_LOOP (10)
  138. #define NMBD_SELECT_LOOP (10)
  139. #define BROWSE_INTERVAL (60)
  140. #define REGISTRATION_INTERVAL (10*60)
  141. #define NMBD_INETD_TIMEOUT (120)
  142. #define NMBD_MAX_TTL (24*60*60)
  143. #define LPQ_LOCK_TIMEOUT (5)
  144.  
  145. /* the following are in milliseconds */
  146. #define LOCK_RETRY_TIMEOUT (100)
  147.  
  148. /* do you want to dump core (carefully!) when an internal error is
  149.    encountered? Samba will be careful to make the core file only
  150.    accessible to root */
  151. #define DUMP_CORE 1
  152.  
  153. /* what is the longest significant password available on your system? 
  154.  Knowing this speeds up password searches a lot */
  155. #ifndef PASSWORD_LENGTH
  156. #define PASSWORD_LENGTH 8
  157. #endif
  158.  
  159. #define SMB_ALIGNMENT 1
  160.  
  161.  
  162. /* shall we support browse requests via a FIFO to nmbd? */
  163. #define ENABLE_FIFO 1
  164.  
  165. /* how long to wait for a socket connect to happen */
  166. #define LONG_CONNECT_TIMEOUT 30
  167. #define SHORT_CONNECT_TIMEOUT 5
  168.  
  169.  
  170. /* the directory to sit in when idle */
  171. /* #define IDLE_DIR "/" */
  172.  
  173. /* Timout (in seconds) to wait for an oplock break
  174.    message to return from the client. */
  175.  
  176. #define OPLOCK_BREAK_TIMEOUT 30
  177.  
  178. /* Timout (in seconds) to add to the oplock break timeout
  179.    to wait for the smbd to smbd message to return. */
  180.  
  181. #define OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR 2
  182.  
  183. /* the read preciction code has been disabled until some problems with
  184.    it are worked out */
  185. #define USE_READ_PREDICTION 0
  186.  
  187. #endif
  188.