mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
committed by
Gerald (Jerry) Carter
parent
5058f4b9e8
commit
dc67354579
@ -26,41 +26,18 @@
|
||||
#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"
|
||||
|
||||
/* 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
|
||||
|
||||
/* define what facility to use for syslog */
|
||||
#ifndef SYSLOG_FACILITY
|
||||
#define SYSLOG_FACILITY LOG_DAEMON
|
||||
#endif
|
||||
|
||||
/* the maximum password length before we declare a likely attack */
|
||||
#define MAX_PASS_LEN 200
|
||||
|
||||
/* separators for lists */
|
||||
#define LIST_SEP " \t,\n\r"
|
||||
|
||||
/* wchar separators for lists */
|
||||
#define LIST_SEP_W wchar_list_sep
|
||||
|
||||
/* what default type of filesystem do we want this to show up as in a
|
||||
NT file manager window? */
|
||||
#define FSTYPE_STRING "NTFS"
|
||||
|
||||
/* the default guest account - normally set in the Makefile or smb.conf */
|
||||
#ifndef GUEST_ACCOUNT
|
||||
#define GUEST_ACCOUNT "nobody"
|
||||
#endif
|
||||
|
||||
/* user to test password server with as invalid in security=server mode. */
|
||||
#ifndef INVALID_USER_PREFIX
|
||||
#define INVALID_USER_PREFIX "sambatest"
|
||||
@ -72,80 +49,12 @@
|
||||
#define PAGER "more"
|
||||
#endif
|
||||
|
||||
/* the size of the uid cache used to reduce valid user checks */
|
||||
#define VUID_CACHE_SIZE 32
|
||||
|
||||
/* 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 (180)
|
||||
#define IDLE_CLOSED_TIMEOUT (60)
|
||||
#define DPTR_IDLE_TIMEOUT (120)
|
||||
#define SMBD_SELECT_TIMEOUT (60)
|
||||
#define NMBD_SELECT_LOOP (10)
|
||||
#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)
|
||||
#define NMBD_INTERFACES_RELOAD (120)
|
||||
#define NMBD_UNEXPECTED_TIMEOUT (15)
|
||||
|
||||
/* 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
|
||||
|
||||
/* how long (in miliseconds) to wait for a socket connect to happen */
|
||||
#define LONG_CONNECT_TIMEOUT 30000
|
||||
#define SHORT_CONNECT_TIMEOUT 5000
|
||||
|
||||
/* the default netbios keepalive timeout */
|
||||
#define DEFAULT_KEEPALIVE 300
|
||||
|
||||
/* 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
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
||||
/* maximum ID number used for session control. This cannot be larger
|
||||
than 62*62 for the current code */
|
||||
#define MAX_SESSION_ID 3000
|
||||
|
||||
/* shall we deny oplocks to clients that get timeouts? */
|
||||
#define FASCIST_OPLOCK_BACKOFF 1
|
||||
|
||||
/* Max number of jobs per print queue. */
|
||||
#define PRINT_MAX_JOBID 10000
|
||||
|
||||
/* Tuning for server auth mutex. */
|
||||
#define CLI_AUTH_TIMEOUT 5000 /* In milli-seconds. */
|
||||
#define NUM_CLI_AUTH_CONNECT_RETRIES 3
|
||||
/* Number in seconds to wait for the mutex. This must be less than 30 seconds. */
|
||||
#define SERVER_MUTEX_WAIT_TIME ( ((NUM_CLI_AUTH_CONNECT_RETRIES) * ((CLI_AUTH_TIMEOUT)/1000)) + 5)
|
||||
/* Number in seconds for winbindd to wait for the mutex. Make this 2 * smbd wait time. */
|
||||
#define WINBIND_SERVER_MUTEX_WAIT_TIME (( ((NUM_CLI_AUTH_CONNECT_RETRIES) * ((CLI_AUTH_TIMEOUT)/1000)) + 5)*2)
|
||||
|
||||
/* Max number of simultaneous winbindd socket connections. */
|
||||
#define WINBINDD_MAX_SIMULTANEOUS_CLIENTS 200
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user