summaryrefslogtreecommitdiffstats
path: root/lib/param
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-12-06 11:39:15 +0100
committerStefan Metzmacher <metze@samba.org>2014-01-07 12:47:17 +0100
commit807bcb4981fb20a9b97e69f01c3545ea7e85666e (patch)
tree734db82b13e5b047c956190218052fcf9e924fdd /lib/param
parent87bdc88328568359e51af6615b378ba8dc67f647 (diff)
lib/param: add "reject md5 client" option, defaulting to false
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/param_functions.c1
-rw-r--r--lib/param/param_table.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
index 7d86828ee2..151c8b9f1e 100644
--- a/lib/param/param_functions.c
+++ b/lib/param/param_functions.c
@@ -205,6 +205,7 @@ FN_GLOBAL_BOOL(pam_password_change, bPamPasswordChange)
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_clients, bRejectMD5Clients)
FN_GLOBAL_BOOL(reject_md5_servers, bRejectMD5Servers)
FN_GLOBAL_BOOL(require_strong_key, bRequireStrongKey)
FN_GLOBAL_BOOL(reset_on_zero_vc, bResetOnZeroVC)
diff --git a/lib/param/param_table.c b/lib/param/param_table.c
index 8b6b234ea5..3b1555d936 100644
--- a/lib/param/param_table.c
+++ b/lib/param/param_table.c
@@ -4325,6 +4325,15 @@ static struct parm_struct parm_table[] = {
.enum_list = NULL,
.flags = FLAG_ADVANCED,
},
+ {
+ .label = "reject md5 clients",
+ .type = P_BOOL,
+ .p_class = P_GLOBAL,
+ .offset = GLOBAL_VAR(bRejectMD5Clients),
+ .special = NULL,
+ .enum_list = NULL,
+ .flags = FLAG_ADVANCED,
+ },
{N_("TLS options"), P_SEP, P_SEPARATOR},