lib/param: add "reject md5 client" option, defaulting to false
authorStefan Metzmacher <metze@samba.org>
Fri, 6 Dec 2013 10:39:15 +0000 (11:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Jan 2014 11:47:17 +0000 (12:47 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
docs-xml/smbdotconf/logon/rejectmd5clients.xml [new file with mode: 0644]
lib/param/param_functions.c
lib/param/param_table.c

diff --git a/docs-xml/smbdotconf/logon/rejectmd5clients.xml b/docs-xml/smbdotconf/logon/rejectmd5clients.xml
new file mode 100644 (file)
index 0000000..04a5b4d
--- /dev/null
@@ -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>
index 7d86828ee269f0c1f6e4d147b27c0793a68605be..151c8b9f1e7d0eec112458d39c1733d96ddc0b6e 100644 (file)
@@ -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)
index 8b6b234ea5d2ae81508188ba26f25d971004f5fc..3b1555d93645f9bc002e4cd148823c47490852e4 100644 (file)
@@ -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},