| 1 |
<samba:parameter name="nt hash store" |
| 2 |
context="G" |
| 3 |
type="enum" |
| 4 |
enumlist="enum_nt_hash_store" |
| 5 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 6 |
<description> |
| 7 |
<para>This parameter determines whether or not <citerefentry><refentrytitle>samba</refentrytitle> |
| 8 |
<manvolnum>8</manvolnum></citerefentry> will, as an AD DC, attempt to |
| 9 |
store the NT password hash used in NTLM and NTLMv2 authentication for |
| 10 |
users in this domain. </para> |
| 11 |
|
| 12 |
<para>If so configured, the Samba Active Directory Domain Controller, |
| 13 |
will, except for trust accounts (computers, domain |
| 14 |
controllers and inter-domain trusts), |
| 15 |
<emphasis>NOT store the NT hash</emphasis> |
| 16 |
for new and changed accounts in the sam.ldb database.</para> |
| 17 |
|
| 18 |
<para>This avoids the storage of an unsalted hash for these |
| 19 |
user-created passwords. As a consequence the |
| 20 |
<constant>arcfour-hmac-md5</constant> Kerberos key type is |
| 21 |
also unavailable in the KDC for these users - thankfully |
| 22 |
<emphasis>modern clients will select an AES based key |
| 23 |
instead.</emphasis></para> |
| 24 |
|
| 25 |
<para>NOTE: As the password history in Active Directory is |
| 26 |
stored as an NT hash (and thus unavailable), a workaround is |
| 27 |
used, relying instead on Kerberos password hash values. |
| 28 |
This stores three passwords, the current, previous and second previous |
| 29 |
password. This allows some checking against reuse. </para> |
| 30 |
|
| 31 |
<para>However as these values are salted, changing the |
| 32 |
sAMAccountName, userAccountControl or userPrincipalName of |
| 33 |
an account will cause the salt to change. After the rare |
| 34 |
combination of both a rename and a password change only the |
| 35 |
current password will be recognised for password history |
| 36 |
purposes. |
| 37 |
</para> |
| 38 |
<para>The available settings are:</para> |
| 39 |
|
| 40 |
<itemizedlist> |
| 41 |
<listitem> |
| 42 |
<para><constant>always</constant> - Always store the NT hash |
| 43 |
(as machine accounts will also always store an NT hash, |
| 44 |
a hash will be stored for all accounts).</para> |
| 45 |
|
| 46 |
<para>This setting may be useful if <parameter |
| 47 |
moreinfo="none">ntlm auth</parameter> is set to <constant>disabled</constant> |
| 48 |
for a trial period</para> |
| 49 |
|
| 50 |
</listitem> |
| 51 |
|
| 52 |
<listitem> |
| 53 |
<para><constant>never</constant> - Never store the NT hash |
| 54 |
for user accounts, only for machine accounts</para> |
| 55 |
</listitem> |
| 56 |
|
| 57 |
<listitem> |
| 58 |
<para><constant>auto</constant> - Store an NT hash if <parameter |
| 59 |
moreinfo="none">ntlm auth</parameter> is not set to <constant>disabled</constant>. |
| 60 |
</para> |
| 61 |
|
| 62 |
</listitem> |
| 63 |
|
| 64 |
</itemizedlist> |
| 65 |
|
| 66 |
</description> |
| 67 |
|
| 68 |
<related>ntlm auth</related> |
| 69 |
<value type="default">always</value> |
| 70 |
</samba:parameter> |