diff options
| author | Stefan Metzmacher <metze@samba.org> | 2013-10-17 18:39:56 +0200 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:05 +0100 |
| commit | 6630c68cce8fbbd700e7d4cd92ec3ebb2a268f06 (patch) | |
| tree | b41559d352d37d9754c28f02eb2fe853c2f40a44 /lib | |
| parent | de4f8f0825790452455a9d51e9d84d4d4a5c0d3b (diff) | |
| download | samba-6630c68cce8fbbd700e7d4cd92ec3ebb2a268f06.tar.gz samba-6630c68cce8fbbd700e7d4cd92ec3ebb2a268f06.tar.xz samba-6630c68cce8fbbd700e7d4cd92ec3ebb2a268f06.zip | |
lib/param: add "require strong key" option, defaulting to true
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/param/loadparm.c | 1 | ||||
| -rw-r--r-- | lib/param/param_functions.c | 1 | ||||
| -rw-r--r-- | lib/param/param_table.c | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index df2ff6e11b..0e41aec4f8 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -2184,6 +2184,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lpcfg_do_global_parameter(lp_ctx, "winbind separator", "\\"); lpcfg_do_global_parameter(lp_ctx, "winbind sealed pipes", "True"); + lpcfg_do_global_parameter(lp_ctx, "require strong key", "True"); lpcfg_do_global_parameter(lp_ctx, "winbindd socket directory", dyn_WINBINDD_SOCKET_DIR); lpcfg_do_global_parameter(lp_ctx, "winbindd privileged socket directory", dyn_WINBINDD_PRIVILEGED_SOCKET_DIR); lpcfg_do_global_parameter(lp_ctx, "ntp signd socket directory", dyn_NTP_SIGND_SOCKET_DIR); diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index 5b55c7dd42..d04bc0de91 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -205,6 +205,7 @@ FN_GLOBAL_BOOL(passdb_expand_explicit, bPassdbExpandExplicit) FN_GLOBAL_BOOL(passwd_chat_debug, bPasswdChatDebug) FN_GLOBAL_BOOL(registry_shares, bRegistryShares) FN_GLOBAL_BOOL(reject_md5_servers, bRejectMD5Servers) +FN_GLOBAL_BOOL(require_strong_key, bRequireStrongKey) FN_GLOBAL_BOOL(reset_on_zero_vc, bResetOnZeroVC) FN_GLOBAL_BOOL(rpc_big_endian, bRpcBigEndian) FN_GLOBAL_BOOL(stat_cache, bStatCache) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 0a07147db0..c79190c43c 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -4198,6 +4198,15 @@ static struct parm_struct parm_table[] = { .enum_list = NULL, .flags = FLAG_ADVANCED, }, + { + .label = "require strong key", + .type = P_BOOL, + .p_class = P_GLOBAL, + .offset = GLOBAL_VAR(bRequireStrongKey), + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED, + }, {N_("DNS options"), P_SEP, P_SEPARATOR}, { |
