X-Git-Url: http://git.samba.org/?p=samba.git;a=blobdiff_plain;f=source%2Finclude%2Flocal.h;h=144c2d2838b33598cf51bee12f410d1d312139cd;hp=01eac556525e38da1edf1663ff2edb975b3ea509;hb=4e424d0ba652bf9c5dfd3c44216b6145538cf821;hpb=3af04f1580b2569c0a4f2549bf6352c7a25afa0d diff --git a/source/include/local.h b/source/include/local.h index 01eac556525..144c2d2838b 100644 --- a/source/include/local.h +++ b/source/include/local.h @@ -1,3 +1,6 @@ +/* Copyright (C) 1995-1998 Samba-Team */ +/* Copyright (C) 1998 John H Terpstra */ + /* local definitions for file server */ #ifndef _LOCAL_H #define _LOCAL_H @@ -17,13 +20,15 @@ refer to the special "printers" service */ #define PRINTERS_NAME "printers" -/* This defines the name of the printcap file. It is MOST UNLIKELY that - this will change BUT! Specifying a file with the format of a printcap - file but containing only a subset of the printers actually in your real - printcap file is a quick-n-dirty way to allow dynamic access to a subset - of available printers. -*/ -#define PRINTCAP_NAME "/etc/printcap" +/* Yves Gaige requested this set this */ +/* to a maximum of 8 if old smb clients break because of long printer names. */ +#define MAXPRINTERLEN 15 + + +/* define what facility to use for syslog */ +#ifndef SYSLOG_FACILITY +#define SYSLOG_FACILITY LOG_DAEMON +#endif /* set these to define the limits of the server. NOTE These are on a per-client basis. Thus any one machine can't connect to more than @@ -32,8 +37,13 @@ #define MAX_CONNECTIONS 127 #define MAX_OPEN_FILES 100 -/* the max number of connections that the smbstatus program will show */ -#define MAXSTATUS 1000 +/* Default size of shared memory used for share mode locking */ +#ifndef SHMEM_SIZE +#define SHMEM_SIZE (1024*MAX_OPEN_FILES) +#endif + +/* the max number of simultanous connections to the server by all clients */ +#define MAXSTATUS 100000 /* max number of directories open at once */ /* note that with the new directory code this no longer requires a @@ -42,6 +52,8 @@ #define WORDMAX 0xFFFF +/* the maximum password length before we declare a likely attack */ +#define MAX_PASS_LEN 200 /* separators for lists */ #define LIST_SEP " \t,;:\n\r" @@ -73,6 +85,12 @@ manager window? */ #define FSTYPE_STRING "Samba" + +/* the default guest account - normally set in the Makefile or smb.conf */ +#ifndef GUEST_ACCOUNT +#define GUEST_ACCOUNT "nobody" +#endif + /* do you want smbd to send a 1 byte packet to nmbd to trigger it to start when smbd starts? */ #ifndef PRIME_NMBD @@ -114,9 +132,7 @@ /* the following control timings of various actions. Don't change them unless you know what you are doing. These are all in seconds */ #define DEFAULT_SMBD_TIMEOUT (60*60*24*7) -#define SMBD_RELOAD_CHECK (10) -#define SHARE_MODES_CHECK (10) -#define SHARE_MODES_CLEAN (300) +#define SMBD_RELOAD_CHECK (60) #define IDLE_CLOSED_TIMEOUT (60) #define DPTR_IDLE_TIMEOUT (120) #define SMBD_SELECT_LOOP (10) @@ -147,16 +163,28 @@ /* shall we support browse requests via a FIFO to nmbd? */ #define ENABLE_FIFO 1 -/* keep the password server open, this uses up a aocket, but is needed - by many apps */ -#define KEEP_PASSWORD_SERVER_OPEN 1 - /* how long to wait for a socket connect to happen */ #define LONG_CONNECT_TIMEOUT 30 #define SHORT_CONNECT_TIMEOUT 5 +/* the default netbios keepalive timeout */ +#define DEFAULT_KEEPALIVE 300 /* the directory to sit in when idle */ /* #define IDLE_DIR "/" */ +/* Timout (in seconds) to wait for an oplock break + message to return from the client. */ + +#define OPLOCK_BREAK_TIMEOUT 30 + +/* Timout (in seconds) to add to the oplock break timeout + to wait for the smbd to smbd message to return. */ + +#define OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR 2 + +/* the read preciction code has been disabled until some problems with + it are worked out */ +#define USE_READ_PREDICTION 0 + #endif