1 /* local definitions for file server */
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 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
30 /* define what facility to use for syslog */
31 #ifndef SYSLOG_FACILITY
32 #define SYSLOG_FACILITY LOG_DAEMON
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
39 #define MAX_CONNECTIONS 127
40 #define MAX_OPEN_FILES 100
42 /* the max number of connections that the smbstatus program will show */
43 #define MAXSTATUS 1000
45 /* max number of directories open at once */
46 /* note that with the new directory code this no longer requires a
47 file handle per directory, but large numbers do use more memory */
50 #define WORDMAX 0xFFFF
52 /* the maximum password length before we declare a likely attack */
53 #define MAX_PASS_LEN 200
55 /* separators for lists */
56 #define LIST_SEP " \t,;:\n\r"
59 /* this should have been set in the Makefile */
60 #define LOCKDIR "/tmp/samba"
63 /* this is where browse lists are kept in the lock dir */
64 #define SERVER_LIST "browse.dat"
66 /* shall guest entries in printer queues get changed to user entries,
67 so they can be deleted using the windows print manager? */
68 #define LPQ_GUEST_TO_USER
70 /* shall filenames with illegal chars in them get mangled in long
72 #define MANGLE_LONG_FILENAMES
74 /* define this if you want to stop spoofing with .. and soft links
75 NOTE: This also slows down the server considerably */
78 /* the size of the directory cache */
79 #define DIRCACHESIZE 20
81 /* what type of filesystem do we want this to show up as in a NT file
83 #define FSTYPE_STRING "Samba"
86 /* the default guest account - normally set in the Makefile or smb.conf */
88 #define GUEST_ACCOUNT "nobody"
91 /* do you want smbd to send a 1 byte packet to nmbd to trigger it to start
97 /* do you want session setups at user level security with a invalid
98 password to be rejected or allowed in as guest? WinNT rejects them
99 but it can be a pain as it means "net view" needs to use a password
103 GUEST_SESSSETUP = 0 means session setups with an invalid password
106 GUEST_SESSSETUP = 1 means session setups with an invalid password
107 are rejected, unless the username does not exist, in which case it
108 is treated as a guest login
110 GUEST_SESSSETUP = 2 means session setups with an invalid password
111 are treated as a guest login
113 Note that GUEST_SESSSETUP only has an effect in user or server
116 #ifndef GUEST_SESSSETUP
117 #define GUEST_SESSSETUP 0
120 /* the default pager to use for the client "more" command. Users can
121 override this with the PAGER environment variable */
126 /* the size of the uid cache used to reduce valid user checks */
127 #define UID_CACHE_SIZE 4
129 /* the following control timings of various actions. Don't change
130 them unless you know what you are doing. These are all in seconds */
131 #define DEFAULT_SMBD_TIMEOUT (60*60*24*7)
132 #define SMBD_RELOAD_CHECK (60)
133 #define IDLE_CLOSED_TIMEOUT (60)
134 #define DPTR_IDLE_TIMEOUT (120)
135 #define SMBD_SELECT_LOOP (10)
136 #define NMBD_SELECT_LOOP (10)
137 #define BROWSE_INTERVAL (60)
138 #define REGISTRATION_INTERVAL (10*60)
139 #define NMBD_INETD_TIMEOUT (120)
140 #define NMBD_MAX_TTL (24*60*60)
141 #define LPQ_LOCK_TIMEOUT (5)
143 /* the following are in milliseconds */
144 #define LOCK_RETRY_TIMEOUT (100)
146 /* do you want to dump core (carefully!) when an internal error is
147 encountered? Samba will be careful to make the core file only
148 accessible to root */
151 /* what is the longest significant password available on your system?
152 Knowing this speeds up password searches a lot */
153 #ifndef PASSWORD_LENGTH
154 #define PASSWORD_LENGTH 8
157 #define SMB_ALIGNMENT 1
160 /* shall we support browse requests via a FIFO to nmbd? */
161 #define ENABLE_FIFO 1
163 /* how long to wait for a socket connect to happen */
164 #define LONG_CONNECT_TIMEOUT 30
165 #define SHORT_CONNECT_TIMEOUT 5
168 /* the directory to sit in when idle */
169 /* #define IDLE_DIR "/" */
171 /* Timout (in seconds) to wait for an oplock break
172 message to return from the client. */
174 #define OPLOCK_BREAK_TIMEOUT 30
176 /* Timout (in seconds) to add to the oplock break timeout
177 to wait for the smbd to smbd message to return. */
179 #define OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR 2
181 /* the read preciction code has been disabled until some problems with
183 #define USE_READ_PREDICTION 0