diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-06 11:39:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:17 +0100 |
commit | 807bcb4981fb20a9b97e69f01c3545ea7e85666e (patch) | |
tree | 734db82b13e5b047c956190218052fcf9e924fdd | |
parent | 87bdc88328568359e51af6615b378ba8dc67f647 (diff) | |
download | samba-807bcb4981fb20a9b97e69f01c3545ea7e85666e.tar.gz samba-807bcb4981fb20a9b97e69f01c3545ea7e85666e.tar.xz samba-807bcb4981fb20a9b97e69f01c3545ea7e85666e.zip |
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>
-rw-r--r-- | docs-xml/smbdotconf/logon/rejectmd5clients.xml | 18 | ||||
-rw-r--r-- | lib/param/param_functions.c | 1 | ||||
-rw-r--r-- | lib/param/param_table.c | 9 |
3 files changed, 28 insertions, 0 deletions
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 @@ +<samba:parameter name="reject md5 clients" + context="G" + type="boolean" + advanced="1" + xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> +<description> + <para>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.</para> + + <para>You can set this to yes if all domain members support aes. + This will prevent downgrade attacks.</para> + + <para>This option takes precedence to the 'allow nt4 crypto' option.</para> +</description> + +<value type="default">no</value> +</samba:parameter> 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}, |