diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-12-09 14:23:49 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-04-02 17:12:47 +0200 |
commit | 9d5f4cabf3f491fd1c22dbc1daaad8a657d12914 (patch) | |
tree | c5a39f44316263d6426ecc7397bc878f5aed27c1 /lib/param | |
parent | afdd5fbd51b4dbde419da7bc64bab5eaf42a955d (diff) | |
download | samba-9d5f4cabf3f491fd1c22dbc1daaad8a657d12914.tar.gz samba-9d5f4cabf3f491fd1c22dbc1daaad8a657d12914.tar.xz samba-9d5f4cabf3f491fd1c22dbc1daaad8a657d12914.zip |
lib/param: Add new parameter "old password allowed period"
Change-Id: I46228b492ba71ba4f3fee380a1ccadb328e3ade1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/param')
-rw-r--r-- | lib/param/loadparm.c | 1 | ||||
-rw-r--r-- | lib/param/param_table.c | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index fd5e5e3dac2..97a06a0efd0 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2082,6 +2082,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lpcfg_do_global_parameter(lp_ctx, "ReadRaw", "True"); lpcfg_do_global_parameter(lp_ctx, "WriteRaw", "True"); lpcfg_do_global_parameter(lp_ctx, "NullPasswords", "False"); + lpcfg_do_global_parameter(lp_ctx, "old password allowed period", "60"); lpcfg_do_global_parameter(lp_ctx, "ObeyPamRestrictions", "False"); lpcfg_do_global_parameter(lp_ctx, "TimeServer", "False"); diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 40f8eb50d88..8df7d1b5fa1 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -490,6 +490,15 @@ static struct parm_struct parm_table[] = { .flags = FLAG_ADVANCED | FLAG_DEPRECATED, }, { + .label = "old password allowed period", + .type = P_INTEGER, + .p_class = P_GLOBAL, + .offset = GLOBAL_VAR(old_password_allowed_period), + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED, + }, + { .label = "obey pam restrictions", .type = P_BOOL, .p_class = P_GLOBAL, |