| 1 |
<samba:parameter name="allow nt4 crypto" |
| 2 |
context="G" |
| 3 |
type="boolean" |
| 4 |
deprecated="1" |
| 5 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 6 |
<description> |
| 7 |
<para> |
| 8 |
This option is deprecated and will be removed in future, |
| 9 |
as it is a security problem if not set to "no" (which will be |
| 10 |
the hardcoded behavior in future). |
| 11 |
</para> |
| 12 |
|
| 13 |
<para>This option controls whether the netlogon server (currently |
| 14 |
only in 'active directory domain controller' mode), will |
| 15 |
reject clients which do not support NETLOGON_NEG_STRONG_KEYS |
| 16 |
nor NETLOGON_NEG_SUPPORTS_AES.</para> |
| 17 |
|
| 18 |
<para>This option was added with Samba 4.2.0. It may lock out clients |
| 19 |
which worked fine with Samba versions up to 4.1.x. as the effective default |
| 20 |
was "yes" there, while it is "no" now.</para> |
| 21 |
|
| 22 |
<para>If you have clients without RequireStrongKey = 1 in the registry, |
| 23 |
you may need to set "allow nt4 crypto = yes", until you have fixed all clients. |
| 24 |
</para> |
| 25 |
|
| 26 |
<para>"allow nt4 crypto = yes" allows weak crypto to be negotiated, maybe via downgrade attacks.</para> |
| 27 |
|
| 28 |
<para><emphasis>Avoid using this option!</emphasis> Use explicit '<smbconfoption name="allow nt4 crypto:COMPUTERACCOUNT">yes</smbconfoption>' instead! |
| 29 |
Which is available with the patches for |
| 30 |
<ulink url="https://www.samba.org/samba/security/CVE-2022-38023.html">CVE-2022-38023</ulink> |
| 31 |
see <ulink url="https://bugzilla.samba.org/show_bug.cgi?id=15240">https://bugzilla.samba.org/show_bug.cgi?id=15240</ulink></para> |
| 32 |
|
| 33 |
<para> |
| 34 |
Samba will log an error in the log files at log level 0 |
| 35 |
if legacy a client is rejected or allowed without an explicit, |
| 36 |
'<smbconfoption name="allow nt4 crypto:COMPUTERACCOUNT">yes</smbconfoption>' option |
| 37 |
for the client. The message will indicate |
| 38 |
the explicit '<smbconfoption name="allow nt4 crypto:COMPUTERACCOUNT">yes</smbconfoption>' |
| 39 |
line to be added, if the legacy client software requires it. (The log level can be adjusted with |
| 40 |
'<smbconfoption name="CVE_2022_38023:error_debug_level">1</smbconfoption>' |
| 41 |
in order to complain only at a higher log level). |
| 42 |
</para> |
| 43 |
|
| 44 |
<para>This allows admins to use "yes" only for a short grace period, |
| 45 |
in order to collect the explicit |
| 46 |
'<smbconfoption name="allow nt4 crypto:COMPUTERACCOUNT">yes</smbconfoption>' options.</para> |
| 47 |
|
| 48 |
<para>This option is over-ridden by the effective value of 'yes' from |
| 49 |
the '<smbconfoption name="server reject md5 schannel:COMPUTERACCOUNT"/>', |
| 50 |
'<smbconfoption name="reject md5 clients"/>', |
| 51 |
'<smbconfoption name="server reject aes schannel:COMPUTERACCOUNT"/>', |
| 52 |
and/or '<smbconfoption name="server reject aes schannel"/>' options.</para> |
| 53 |
</description> |
| 54 |
|
| 55 |
<value type="default">no</value> |
| 56 |
</samba:parameter> |
| 57 |
|
| 58 |
<samba:parameter name="allow nt4 crypto:COMPUTERACCOUNT" |
| 59 |
context="G" |
| 60 |
type="string" |
| 61 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 62 |
<description> |
| 63 |
|
| 64 |
<para>If you still have legacy domain members which required 'allow nt4 crypto = yes', |
| 65 |
it is possible to specify an explicit exception per computer account |
| 66 |
by using 'allow nt4 crypto:COMPUTERACCOUNT = yes' as option. |
| 67 |
Note that COMPUTERACCOUNT has to be the sAMAccountName value of |
| 68 |
the computer account (including the trailing '$' sign). |
| 69 |
</para> |
| 70 |
|
| 71 |
<para> |
| 72 |
Samba will log a complaint in the log files at log level 0 |
| 73 |
about the security problem if the option is set to "yes", |
| 74 |
but the related computer does not require it. |
| 75 |
(The log level can be adjusted with |
| 76 |
'<smbconfoption name="CVE_2022_38023:warn_about_unused_debug_level">1</smbconfoption>' |
| 77 |
in order to complain only at a higher log level). |
| 78 |
</para> |
| 79 |
|
| 80 |
<para> |
| 81 |
Samba will log a warning in the log files at log level 5, |
| 82 |
if a setting is still needed for the specified computer account. |
| 83 |
</para> |
| 84 |
|
| 85 |
<para> |
| 86 |
See <ulink url="https://www.samba.org/samba/security/CVE-2022-38023.html">CVE-2022-38023</ulink>, |
| 87 |
<ulink url="https://bugzilla.samba.org/show_bug.cgi?id=15240">https://bugzilla.samba.org/show_bug.cgi?id=15240</ulink>. |
| 88 |
</para> |
| 89 |
|
| 90 |
<para>This option overrides the <smbconfoption name="allow nt4 crypto"/> option.</para> |
| 91 |
|
| 92 |
<para>This option is over-ridden by the effective value of 'yes' from |
| 93 |
the '<smbconfoption name="server reject md5 schannel:COMPUTERACCOUNT"/>', |
| 94 |
'<smbconfoption name="reject md5 clients"/>', |
| 95 |
'<smbconfoption name="server reject aes schannel:COMPUTERACCOUNT"/>' |
| 96 |
and/or '<smbconfoption name="server reject aes schannel"/>' options.</para> |
| 97 |
<para>Which means '<smbconfoption name="allow nt4 crypto:COMPUTERACCOUNT">yes</smbconfoption>' |
| 98 |
is only useful in combination with '<smbconfoption name="server reject md5 schannel:COMPUTERACCOUNT">no</smbconfoption>' |
| 99 |
and '<smbconfoption name="server reject aes schannel:COMPUTERACCOUNT">no</smbconfoption>'.</para> |
| 100 |
|
| 101 |
<programlisting> |
| 102 |
allow nt4 crypto:LEGACYCOMPUTER1$ = yes |
| 103 |
server reject md5 schannel:LEGACYCOMPUTER1$ = no |
| 104 |
server reject aes schannel:LEGACYCOMPUTER1$ = no |
| 105 |
allow nt4 crypto:NASBOX$ = yes |
| 106 |
server reject md5 schannel:NASBOX$ = no |
| 107 |
server reject aes schannel:NASBOX$ = no |
| 108 |
allow nt4 crypto:LEGACYCOMPUTER2$ = yes |
| 109 |
server reject md5 schannel:LEGACYCOMPUTER2$ = no |
| 110 |
server reject aes schannel:LEGACYCOMPUTER2$ = no |
| 111 |
</programlisting> |
| 112 |
</description> |
| 113 |
|
| 114 |
</samba:parameter> |