Debian Codegraph @

docs-xml/smbdotconf/security/passwordhashuserpasswordschemes.xml

raw
1 <samba:parameter name="password hash userPassword schemes"
2 context="G"
3 type="cmdlist"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
5 <description>
6
7 <para>This parameter determines whether or not
8 <citerefentry><refentrytitle>samba</refentrytitle>
9 <manvolnum>8</manvolnum></citerefentry> acting as an Active
10 Directory Domain Controller will attempt to store additional
11 passwords hash types for the user</para>
12
13 <para>The values are stored as 'Primary:userPassword' in the
14 <command moreinfo="none">supplementalCredentials</command>
15 attribute. The value of this option is a hash type.</para>
16
17 <para>The currently supported hash types are:</para>
18 <itemizedlist>
19 <listitem>
20 <para><constant>CryptSHA256</constant></para>
21 </listitem>
22 <listitem>
23 <para><constant>CryptSHA512</constant></para>
24 </listitem>
25 </itemizedlist>
26
27 <para>Multiple instances of a hash type may be computed and stored.
28 The password hashes are calculated using the
29 <citerefentry><refentrytitle>crypt</refentrytitle>
30 <manvolnum>3</manvolnum></citerefentry> call.
31 The number of rounds used to compute the hash can be specified by adding
32 ':rounds=xxxx' to the hash type, i.e. CryptSHA512:rounds=4500 would calculate
33 an SHA512 hash using 4500 rounds. If not specified the Operating System
34 defaults for
35 <citerefentry><refentrytitle>crypt</refentrytitle>
36 <manvolnum>3</manvolnum></citerefentry> are used.
37 </para>
38
39 <para>As password changes can occur on any domain controller,
40 you should configure this on each of them. Note that this feature is
41 currently available only on Samba domain controllers.</para>
42
43 <para>Currently the NT Hash of the password is recorded when these hashes
44 are calculated and stored. When retrieving the hashes the current value of the
45 NT Hash is checked against the stored NT Hash. This detects password changes
46 that have not updated the password hashes. In this case
47 <command moreinfo="none">samba-tool user</command> will ignore the stored
48 hash values.
49 </para>
50
51 <para>Being able to obtain the hashed password helps, when
52 they need to be imported into other authentication systems
53 later (see <command moreinfo="none">samba-tool user
54 getpassword</command>) or you want to keep the passwords in
55 sync with another system, e.g. an OpenLDAP server (see
56 <command moreinfo="none">samba-tool user
57 syncpasswords</command>).</para>
58
59 <related>unix password sync</related>
60
61 </description>
62
63 <value type="default"></value>
64 <value type="example">CryptSHA256</value>
65 <value type="example">CryptSHA256 CryptSHA512</value>
66 <value type="example">CryptSHA256:rounds=5000 CryptSHA512:rounds=7000</value>
67 </samba:parameter>