diff options
author | Christof Schmitt <cs@samba.org> | 2019-04-29 11:01:44 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-05-01 03:12:07 +0000 |
commit | 5ac626e7b0565bf880d1b18a3b414bc67d8606df (patch) | |
tree | 3f92603bf938dacf5053d885b638cfc1a40b3775 /lib | |
parent | 2ee72cc6154370ed78bb1113ee0c9896d106d2f8 (diff) | |
download | samba-5ac626e7b0565bf880d1b18a3b414bc67d8606df.tar.gz |
smbd: Move deadtime default to parameter definition and man page
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/param/loadparm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index ebbccc22b71..e03c1556d7e 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2833,6 +2833,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) 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"); |