~ubuntu-branches/ubuntu/breezy/nat/breezy

« back to all changes in this revision

Viewing changes to local.h

  • Committer: Bazaar Package Importer
  • Author(s): Javier Fernandez-Sanguino Pen~a
  • Date: 2003-04-03 23:09:28 UTC
  • Revision ID: james.westby@ubuntu.com-20030403230928-17uovylnn0v0566q
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
5
 * agreement.
 
6
 */
 
7
 
 
8
/* local definitions for file server */
 
9
#ifndef _LOCAL_H
 
10
#define _LOCAL_H
 
11
 
 
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"
 
18
 
 
19
/* This defines the section name in the configuration file that will
 
20
   refer to the special "homes" service */
 
21
#define HOMES_NAME "homes"
 
22
 
 
23
/* This defines the section name in the configuration file that will
 
24
   refer to the special "printers" service */
 
25
#define PRINTERS_NAME "printers"
 
26
 
 
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.
 
32
*/
 
33
#define PRINTCAP_NAME "/etc/printcap"
 
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
/* the max number of connections that the smbstatus program will show */
 
43
#define MAXSTATUS 1000
 
44
 
 
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 */
 
48
#define MAXDIR 64
 
49
 
 
50
#define WORDMAX 0xFFFF
 
51
 
 
52
 
 
53
/* separators for lists */
 
54
#define LIST_SEP " \t,;:\n\r"
 
55
 
 
56
#ifndef LOCKDIR
 
57
#define LOCKDIR "/tmp/samba"
 
58
#endif
 
59
 
 
60
/* this is where browse lists are kept in the lock dir */
 
61
#define SERVER_LIST "browse.dat"
 
62
 
 
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"
 
68
 
 
69
/* the lpq command on the server. the printername is passed as an argument */
 
70
#ifndef LPQ_COMMAND
 
71
#define LPQ_COMMAND "lpq -P"
 
72
#endif
 
73
 
 
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
 
77
 
 
78
/* shall filenames with illegal chars in them get mangled in long
 
79
   filename listings? */
 
80
#define MANGLE_LONG_FILENAMES 
 
81
 
 
82
/* define this if you want to stop spoofing with .. and soft links
 
83
   NOTE: This also slows down the server considerably */
 
84
#define REDUCE_PATHS
 
85
 
 
86
/* the size of the directory cache */
 
87
#define DIRCACHESIZE 20
 
88
 
 
89
/* what type of filesystem do we want this to show up as in a NT file
 
90
   manager window? */
 
91
#define FSTYPE_STRING "Samba"
 
92
 
 
93
/* we have two time standards - local and GMT. This will try to sort them out.
 
94
 */
 
95
 
 
96
#define LOCAL_TO_GMT 1
 
97
#define GMT_TO_LOCAL (-1)
 
98
 
 
99
/* do you want smbd to send a 1 byte packet to nmbd to trigger it to start 
 
100
   when smbd starts? */
 
101
#ifndef PRIME_NMBD
 
102
#define PRIME_NMBD 1
 
103
#endif
 
104
 
 
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 
 
108
 
 
109
   You have 3 choices:
 
110
 
 
111
   GUEST_SESSSETUP = 0 means session setups with an invalid password
 
112
   are rejected.
 
113
 
 
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
 
117
 
 
118
   GUEST_SESSSETUP = 2 means session setups with an invalid password
 
119
   are treated as a guest login
 
120
 
 
121
   Note that GUEST_SESSSETUP only has an effect in user or server
 
122
   level security.
 
123
   */
 
124
#ifndef GUEST_SESSSETUP
 
125
#define GUEST_SESSSETUP 0
 
126
#endif
 
127
 
 
128
/* the default pager to use for the client "more" command. Users can
 
129
   override this with the PAGER environment variable */
 
130
#ifndef PAGER
 
131
#define PAGER "more"
 
132
#endif
 
133
 
 
134
/* the size of the uid cache used to reduce valid user checks */
 
135
#define UID_CACHE_SIZE 4
 
136
 
 
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)
 
152
 
 
153
/* the following are in milliseconds */
 
154
#define LOCK_RETRY_TIMEOUT (100)
 
155
 
 
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 */
 
159
#define DUMP_CORE 1
 
160
 
 
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
 
165
#endif
 
166
 
 
167
#define SMB_ALIGNMENT 1
 
168
 
 
169
 
 
170
/* shall we support browse requests via a FIFO to nmbd? */
 
171
#define ENABLE_FIFO 1
 
172
 
 
173
#ifdef SCANNER
 
174
#undef IDLE_CLOSED_TIMEOUT
 
175
#define IDLE_CLOSED_TIMEOUT (600)
 
176
#endif /* SCANNER */
 
177
 
 
178
#endif