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