More consultants....
[Samba/gbeck.git] / source / include / local.h
blob01eac556525e38da1edf1663ff2edb975b3ea509
1 /* local definitions for file server */
2 #ifndef _LOCAL_H
3 #define _LOCAL_H
5 /* This defines the section name in the configuration file that will contain */
6 /* global parameters - that is, parameters relating to the whole server, not */
7 /* just services. This name is then reserved, and may not be used as a */
8 /* a service name. It will default to "global" if not defined here. */
9 #define GLOBAL_NAME "global"
10 #define GLOBAL_NAME2 "globals"
12 /* This defines the section name in the configuration file that will
13 refer to the special "homes" service */
14 #define HOMES_NAME "homes"
16 /* This defines the section name in the configuration file that will
17 refer to the special "printers" service */
18 #define PRINTERS_NAME "printers"
20 /* This defines the name of the printcap file. It is MOST UNLIKELY that
21 this will change BUT! Specifying a file with the format of a printcap
22 file but containing only a subset of the printers actually in your real
23 printcap file is a quick-n-dirty way to allow dynamic access to a subset
24 of available printers.
26 #define PRINTCAP_NAME "/etc/printcap"
28 /* set these to define the limits of the server. NOTE These are on a
29 per-client basis. Thus any one machine can't connect to more than
30 MAX_CONNECTIONS services, but any number of machines may connect at
31 one time. */
32 #define MAX_CONNECTIONS 127
33 #define MAX_OPEN_FILES 100
35 /* the max number of connections that the smbstatus program will show */
36 #define MAXSTATUS 1000
38 /* max number of directories open at once */
39 /* note that with the new directory code this no longer requires a
40 file handle per directory, but large numbers do use more memory */
41 #define MAXDIR 64
43 #define WORDMAX 0xFFFF
46 /* separators for lists */
47 #define LIST_SEP " \t,;:\n\r"
49 #ifndef LOCKDIR
50 /* this should have been set in the Makefile */
51 #define LOCKDIR "/tmp/samba"
52 #endif
54 /* this is where browse lists are kept in the lock dir */
55 #define SERVER_LIST "browse.dat"
57 /* shall guest entries in printer queues get changed to user entries,
58 so they can be deleted using the windows print manager? */
59 #define LPQ_GUEST_TO_USER
61 /* shall filenames with illegal chars in them get mangled in long
62 filename listings? */
63 #define MANGLE_LONG_FILENAMES
65 /* define this if you want to stop spoofing with .. and soft links
66 NOTE: This also slows down the server considerably */
67 #define REDUCE_PATHS
69 /* the size of the directory cache */
70 #define DIRCACHESIZE 20
72 /* what type of filesystem do we want this to show up as in a NT file
73 manager window? */
74 #define FSTYPE_STRING "Samba"
76 /* do you want smbd to send a 1 byte packet to nmbd to trigger it to start
77 when smbd starts? */
78 #ifndef PRIME_NMBD
79 #define PRIME_NMBD 1
80 #endif
82 /* do you want session setups at user level security with a invalid
83 password to be rejected or allowed in as guest? WinNT rejects them
84 but it can be a pain as it means "net view" needs to use a password
86 You have 3 choices:
88 GUEST_SESSSETUP = 0 means session setups with an invalid password
89 are rejected.
91 GUEST_SESSSETUP = 1 means session setups with an invalid password
92 are rejected, unless the username does not exist, in which case it
93 is treated as a guest login
95 GUEST_SESSSETUP = 2 means session setups with an invalid password
96 are treated as a guest login
98 Note that GUEST_SESSSETUP only has an effect in user or server
99 level security.
101 #ifndef GUEST_SESSSETUP
102 #define GUEST_SESSSETUP 0
103 #endif
105 /* the default pager to use for the client "more" command. Users can
106 override this with the PAGER environment variable */
107 #ifndef PAGER
108 #define PAGER "more"
109 #endif
111 /* the size of the uid cache used to reduce valid user checks */
112 #define UID_CACHE_SIZE 4
114 /* the following control timings of various actions. Don't change
115 them unless you know what you are doing. These are all in seconds */
116 #define DEFAULT_SMBD_TIMEOUT (60*60*24*7)
117 #define SMBD_RELOAD_CHECK (10)
118 #define SHARE_MODES_CHECK (10)
119 #define SHARE_MODES_CLEAN (300)
120 #define IDLE_CLOSED_TIMEOUT (60)
121 #define DPTR_IDLE_TIMEOUT (120)
122 #define SMBD_SELECT_LOOP (10)
123 #define NMBD_SELECT_LOOP (10)
124 #define BROWSE_INTERVAL (60)
125 #define REGISTRATION_INTERVAL (10*60)
126 #define NMBD_INETD_TIMEOUT (120)
127 #define NMBD_MAX_TTL (24*60*60)
128 #define LPQ_LOCK_TIMEOUT (5)
130 /* the following are in milliseconds */
131 #define LOCK_RETRY_TIMEOUT (100)
133 /* do you want to dump core (carefully!) when an internal error is
134 encountered? Samba will be careful to make the core file only
135 accessible to root */
136 #define DUMP_CORE 1
138 /* what is the longest significant password available on your system?
139 Knowing this speeds up password searches a lot */
140 #ifndef PASSWORD_LENGTH
141 #define PASSWORD_LENGTH 8
142 #endif
144 #define SMB_ALIGNMENT 1
147 /* shall we support browse requests via a FIFO to nmbd? */
148 #define ENABLE_FIFO 1
150 /* keep the password server open, this uses up a aocket, but is needed
151 by many apps */
152 #define KEEP_PASSWORD_SERVER_OPEN 1
154 /* how long to wait for a socket connect to happen */
155 #define LONG_CONNECT_TIMEOUT 30
156 #define SHORT_CONNECT_TIMEOUT 5
159 /* the directory to sit in when idle */
160 /* #define IDLE_DIR "/" */
162 #endif