The code has a default of one week (10080 minutes) if the parameter is
set to 0. Make this the public default of the parameter, instead of
hiding it in the code. This change also has the code match the
documentation that setting this parameter to 0 disables the check.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
should be performed.</para>
</description>
should be performed.</para>
</description>
-<value type="default">0</value>
+<value type="default">10080</value>
<value type="example">15</value>
</samba:parameter>
<value type="example">15</value>
</samba:parameter>
lpcfg_do_global_parameter(lp_ctx, "passdb backend", "tdbsam");
lpcfg_do_global_parameter(lp_ctx, "passdb backend", "tdbsam");
+ lpcfg_do_global_parameter(lp_ctx, "deadtime", "10080");
+
lpcfg_do_global_parameter(lp_ctx, "getwd cache", "True");
lpcfg_do_global_parameter(lp_ctx, "winbind nested groups", "True");
lpcfg_do_global_parameter(lp_ctx, "getwd cache", "True");
lpcfg_do_global_parameter(lp_ctx, "winbind nested groups", "True");
/* the following control timings of various actions. Don't change
them unless you know what you are doing. These are all in seconds */
/* 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_RELOAD_CHECK (180)
#define IDLE_CLOSED_TIMEOUT (60)
#define DPTR_IDLE_TIMEOUT (120)
Globals._disable_spoolss = false;
Globals.max_smbd_processes = 0;/* no limit specified */
Globals.username_level = 0;
Globals._disable_spoolss = false;
Globals.max_smbd_processes = 0;/* no limit specified */
Globals.username_level = 0;
+ Globals.deadtime = 10080;
Globals.getwd_cache = true;
Globals.large_readwrite = true;
Globals.max_log_size = 5000;
Globals.getwd_cache = true;
Globals.large_readwrite = true;
Globals.max_log_size = 5000;
conn_lastused_update(sconn, t);
if (deadtime <= 0) {
conn_lastused_update(sconn, t);
if (deadtime <= 0) {
- deadtime = DEFAULT_SMBD_TIMEOUT;
}
for (conn=sconn->connections;conn;conn=conn->next) {
}
for (conn=sconn->connections;conn;conn=conn->next) {