1998-03-21 06:03:59 +03:00
/* Copyright (C) 1995-1998 Samba-Team */
/* Copyright (C) 1998 John H Terpstra <jht@aquasoft.com.au> */
1996-05-04 11:50:46 +04:00
/* local definitions for file server */
# ifndef _LOCAL_H
# define _LOCAL_H
1998-08-09 17:25:34 +04:00
/* The default workgroup - usually overridden in smb.conf */
# ifndef WORKGROUP
# define WORKGROUP "WORKGROUP"
# endif
1996-05-04 11:50:46 +04:00
/* This defines the section name in the configuration file that will contain */
/* global parameters - that is, parameters relating to the whole server, not */
/* just services. This name is then reserved, and may not be used as a */
/* a service name. It will default to "global" if not defined here. */
# define GLOBAL_NAME "global"
# define GLOBAL_NAME2 "globals"
/* This defines the section name in the configuration file that will
refer to the special " homes " service */
# define HOMES_NAME "homes"
/* This defines the section name in the configuration file that will
refer to the special " printers " service */
# define PRINTERS_NAME "printers"
1998-03-21 06:03:59 +03:00
/* Yves Gaige <yvesg@hptnodur.grenoble.hp.com> requested this set this */
/* to a maximum of 8 if old smb clients break because of long printer names. */
# define MAXPRINTERLEN 15
1998-08-15 11:27:34 +04:00
/* max number of directories open at once */
/* note that with the new directory code this no longer requires a
file handle per directory , but large numbers do use more memory */
1999-12-13 16:27:58 +03:00
# define MAX_OPEN_DIRECTORIES 256
/* max number of directory handles */
/* As this now uses the bitmap code this can be
quite large . */
# define MAX_DIRECTORY_HANDLES 2048
/* maximum number of file caches per smbd */
# define MAX_WRITE_CACHES 10
1998-03-21 06:03:59 +03:00
1997-12-03 06:21:25 +03:00
/* define what facility to use for syslog */
# ifndef SYSLOG_FACILITY
# define SYSLOG_FACILITY LOG_DAEMON
# endif
1998-09-30 05:49:24 +04:00
/*
* Default number of maximum open files per smbd . This is
* also limited by the maximum available file descriptors
* per process and can also be set in smb . conf as " max open files "
* in the [ global ] section .
*/
# ifndef MAX_OPEN_FILES
1998-09-30 07:05:29 +04:00
# define MAX_OPEN_FILES 10000
1998-09-30 05:49:24 +04:00
# endif
1998-03-17 03:02:19 +03:00
/* the max number of simultanous connections to the server by all clients */
# define MAXSTATUS 100000
1996-05-04 11:50:46 +04:00
# define WORDMAX 0xFFFF
1997-09-26 22:55:29 +04:00
/* the maximum password length before we declare a likely attack */
1997-10-09 10:36:04 +04:00
# define MAX_PASS_LEN 200
1996-05-04 11:50:46 +04:00
/* separators for lists */
# define LIST_SEP " \t,;:\n\r"
1999-12-29 05:00:38 +03:00
/* wchar separators for lists */
# define LIST_SEP_W wchar_list_sep
1996-05-04 11:50:46 +04:00
# ifndef LOCKDIR
1996-10-24 04:09:08 +04:00
/* this should have been set in the Makefile */
1996-05-04 11:50:46 +04:00
# define LOCKDIR " / tmp / samba"
# endif
/* this is where browse lists are kept in the lock dir */
# define SERVER_LIST "browse.dat"
/* shall filenames with illegal chars in them get mangled in long
filename listings ? */
# define MANGLE_LONG_FILENAMES
/* define this if you want to stop spoofing with .. and soft links
NOTE : This also slows down the server considerably */
# define REDUCE_PATHS
/* the size of the directory cache */
# define DIRCACHESIZE 20
1998-09-20 19:39:12 +04:00
/* what default type of filesystem do we want this to show up as in a
NT file manager window ? */
1998-09-26 14:31:40 +04:00
# define FSTYPE_STRING "NTFS"
1997-12-03 02:28:14 +03:00
/* the default guest account - normally set in the Makefile or smb.conf */
# ifndef GUEST_ACCOUNT
# define GUEST_ACCOUNT "nobody"
# endif
1996-05-04 11:50:46 +04:00
/* the default pager to use for the client "more" command. Users can
override this with the PAGER environment variable */
# ifndef PAGER
# define PAGER "more"
# endif
/* the size of the uid cache used to reduce valid user checks */
# define UID_CACHE_SIZE 4
/* 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)
1999-12-13 16:27:58 +03:00
# define SMBD_RELOAD_CHECK (180)
1996-05-04 11:50:46 +04:00
# define IDLE_CLOSED_TIMEOUT (60)
# define DPTR_IDLE_TIMEOUT (120)
1999-12-13 16:27:58 +03:00
# define SMBD_SELECT_TIMEOUT (60)
# define SMBD_SELECT_TIMEOUT_WITH_PENDING_LOCKS (10)
1996-10-07 05:56:21 +04:00
# define NMBD_SELECT_LOOP (10)
1996-05-04 11:50:46 +04:00
# define BROWSE_INTERVAL (60)
# define REGISTRATION_INTERVAL (10*60)
# define NMBD_INETD_TIMEOUT (120)
# define NMBD_MAX_TTL (24*60*60)
# define LPQ_LOCK_TIMEOUT (5)
1999-12-13 16:27:58 +03:00
# define NMBD_INTERFACES_RELOAD (120)
2000-01-03 06:17:16 +03:00
# define NMBD_UNEXPECTED_TIMEOUT (15)
1996-05-04 11:50:46 +04:00
/* the following are in milliseconds */
# define LOCK_RETRY_TIMEOUT (100)
/* do you want to dump core (carefully!) when an internal error is
encountered ? Samba will be careful to make the core file only
accessible to root */
# define DUMP_CORE 1
/* shall we support browse requests via a FIFO to nmbd? */
# define ENABLE_FIFO 1
1999-12-13 16:27:58 +03:00
/* how long (in miliseconds) to wait for a socket connect to happen */
# define LONG_CONNECT_TIMEOUT 30000
# define SHORT_CONNECT_TIMEOUT 5000
1998-11-09 07:17:11 +03:00
1998-03-16 10:23:51 +03:00
/* the default netbios keepalive timeout */
# define DEFAULT_KEEPALIVE 300
1996-10-04 13:31:07 +04:00
/* the directory to sit in when idle */
1996-10-07 19:04:48 +04:00
/* #define IDLE_DIR "/" */
1996-10-04 13:31:07 +04:00
1997-10-09 22:40:52 +04:00
/* Timout (in seconds) to wait for an oplock break
1997-11-06 22:11:16 +03:00
message to return from the client . */
1997-09-30 06:38:19 +04:00
1997-10-02 03:32:22 +04:00
# define OPLOCK_BREAK_TIMEOUT 30
1997-09-30 06:38:19 +04:00
1997-11-06 22:11:16 +03:00
/* 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
1997-10-27 16:38:07 +03:00
/* the read preciction code has been disabled until some problems with
it are worked out */
# define USE_READ_PREDICTION 0
1998-08-13 22:56:09 +04:00
/* name of directory that netatalk uses to store macintosh resource forks */
# define APPLEDOUBLE ".AppleDouble / "
1999-12-13 16:27:58 +03:00
/*
* Default passwd chat script .
*/
# define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*"
/* Minimum length of allowed password when changing UNIX password. */
# define MINPASSWDLENGTH 5
2001-04-18 20:41:04 +04:00
/* maximum ID number used for session control. This cannot be larger
than 62 * 62 for the current code */
# define MAX_SESSION_ID 3000
# ifndef SESSION_TEMPLATE
# define SESSION_TEMPLATE "smb / %d"
# endif
1996-05-04 11:50:46 +04:00
# endif