From 807bcb4981fb20a9b97e69f01c3545ea7e85666e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 6 Dec 2013 11:39:15 +0100 Subject: lib/param: add "reject md5 client" option, defaulting to false Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- docs-xml/smbdotconf/logon/rejectmd5clients.xml | 18 ++++++++++++++++++ lib/param/param_functions.c | 1 + lib/param/param_table.c | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 docs-xml/smbdotconf/logon/rejectmd5clients.xml diff --git a/docs-xml/smbdotconf/logon/rejectmd5clients.xml b/docs-xml/smbdotconf/logon/rejectmd5clients.xml new file mode 100644 index 0000000000..04a5b4da09 --- /dev/null +++ b/docs-xml/smbdotconf/logon/rejectmd5clients.xml @@ -0,0 +1,18 @@ + + + This option controls whether the netlogon server (currently + only in 'active directory domain controller' mode), will + reject clients which does not support NETLOGON_NEG_SUPPORTS_AES. + + You can set this to yes if all domain members support aes. + This will prevent downgrade attacks. + + This option takes precedence to the 'allow nt4 crypto' option. + + +no + 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}, -- cgit