2
* This file has been modified from the original Samba package
3
* by Secure Networks Inc., January and February, 1997. This package and
4
* all code which it is based on falls under the GNU Public License
8
/* local definitions for file server */
12
/* This defines the section name in the configuration file that will contain */
13
/* global parameters - that is, parameters relating to the whole server, not */
14
/* just services. This name is then reserved, and may not be used as a */
15
/* a service name. It will default to "global" if not defined here. */
16
#define GLOBAL_NAME "global"
17
#define GLOBAL_NAME2 "globals"
19
/* This defines the section name in the configuration file that will
20
refer to the special "homes" service */
21
#define HOMES_NAME "homes"
23
/* This defines the section name in the configuration file that will
24
refer to the special "printers" service */
25
#define PRINTERS_NAME "printers"
27
/* This defines the name of the printcap file. It is MOST UNLIKELY that
28
this will change BUT! Specifying a file with the format of a printcap
29
file but containing only a subset of the printers actually in your real
30
printcap file is a quick-n-dirty way to allow dynamic access to a subset
31
of available printers.
33
#define PRINTCAP_NAME "/etc/printcap"
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
53
/* separators for lists */
54
#define LIST_SEP " \t,;:\n\r"
57
#define LOCKDIR "/tmp/samba"
60
/* this is where browse lists are kept in the lock dir */
61
#define SERVER_LIST "browse.dat"
63
/* the print command on the server, %s is replaced with the filename */
64
/* note that the -r removes the file after printing - you'll run out */
65
/* of disk pretty quickly if you don't. This command is only used as */
66
/* the default - it can be overridden in the configuration file. */
67
#define PRINT_COMMAND "lpr -r %s"
69
/* the lpq command on the server. the printername is passed as an argument */
71
#define LPQ_COMMAND "lpq -P"
74
/* shall guest entries in printer queues get changed to user entries,
75
so they can be deleted using the windows print manager? */
76
#define LPQ_GUEST_TO_USER
78
/* shall filenames with illegal chars in them get mangled in long
80
#define MANGLE_LONG_FILENAMES
82
/* define this if you want to stop spoofing with .. and soft links
83
NOTE: This also slows down the server considerably */
86
/* the size of the directory cache */
87
#define DIRCACHESIZE 20
89
/* what type of filesystem do we want this to show up as in a NT file
91
#define FSTYPE_STRING "Samba"
93
/* we have two time standards - local and GMT. This will try to sort them out.
96
#define LOCAL_TO_GMT 1
97
#define GMT_TO_LOCAL (-1)
99
/* do you want smbd to send a 1 byte packet to nmbd to trigger it to start
105
/* do you want session setups at user level security with a invalid
106
password to be rejected or allowed in as guest? WinNT rejects them
107
but it can be a pain as it means "net view" needs to use a password
111
GUEST_SESSSETUP = 0 means session setups with an invalid password
114
GUEST_SESSSETUP = 1 means session setups with an invalid password
115
are rejected, unless the username does not exist, in which case it
116
is treated as a guest login
118
GUEST_SESSSETUP = 2 means session setups with an invalid password
119
are treated as a guest login
121
Note that GUEST_SESSSETUP only has an effect in user or server
124
#ifndef GUEST_SESSSETUP
125
#define GUEST_SESSSETUP 0
128
/* the default pager to use for the client "more" command. Users can
129
override this with the PAGER environment variable */
134
/* the size of the uid cache used to reduce valid user checks */
135
#define UID_CACHE_SIZE 4
137
/* the following control timings of various actions. Don't change
138
them unless you know what you are doing. These are all in seconds */
139
#define DEFAULT_SMBD_TIMEOUT (60*60*24*7)
140
#define SMBD_RELOAD_CHECK (10)
141
#define SHARE_MODES_CHECK (10)
142
#define SHARE_MODES_CLEAN (300)
143
#define IDLE_CLOSED_TIMEOUT (30)
144
#define DPTR_IDLE_TIMEOUT (120)
145
#define SMBD_SELECT_LOOP (10)
146
#define NMBD_SELECT_LOOP (10)
147
#define BROWSE_INTERVAL (60)
148
#define REGISTRATION_INTERVAL (10*60)
149
#define NMBD_INETD_TIMEOUT (120)
150
#define NMBD_MAX_TTL (24*60*60)
151
#define LPQ_LOCK_TIMEOUT (5)
153
/* the following are in milliseconds */
154
#define LOCK_RETRY_TIMEOUT (100)
156
/* do you want to dump core (carefully!) when an internal error is
157
encountered? Samba will be careful to make the core file only
158
accessible to root */
161
/* what is the longest significant password available on your system?
162
Knowing this speeds up password searches a lot */
163
#ifndef PASSWORD_LENGTH
164
#define PASSWORD_LENGTH 8
167
#define SMB_ALIGNMENT 1
170
/* shall we support browse requests via a FIFO to nmbd? */
171
#define ENABLE_FIFO 1
174
#undef IDLE_CLOSED_TIMEOUT
175
#define IDLE_CLOSED_TIMEOUT (600)