Debian Codegraph @

doc/sources/admin/authad.rst

raw
1 Active Directory
2 ================
3
4 ============== ===== ========
5 Authentication Users Password
6 ============== ===== ========
7 ✔ ✔ ✔
8 ============== ===== ========
9
10 Presentation
11 ------------
12
13 The Active Directory module is based on
14 :doc:`LDAP module<authldap>`, with the following features:
15
16 - Specific default values for filters to match AD schema
17 - Compatible password modification
18 - Reset password on next logon workflow
19
20 Configuration
21 -------------
22
23 The configuration is the same as the :doc:`LDAP module<authldap>`,
24 except that the common ``uid`` attribute is replaced by ``sAMAccountName``.
25 The ``userPrincipalName`` is also a unique attribute. Generaly
26 ``<sAMAccountName>@<ad-domain>``.
27
28 AD password policy
29 ------------------
30
31 AD password policy does not follow the LDAP RFC, but Microsoft has
32 implemented its own policy. LemonLDAP::NG implements partially the
33 policy:
34
35 - when ``pwdLastSet = 0`` in the user entry, it means that password has
36 been reset, and a form is displayed to the user to change his
37 password.
38 - when computed virtual attribute ``msDS-User-Account-Control-Computed``
39 as 6th flag set to 8, the password is considered expired *(support
40 from Windows Server 2003)*. It is too late for the user to do
41 anything. He must contact his administrator.
42 - a warning before password expiration is possible in AD, but only in
43 GPO (*Computer Configuration* » *Windows Settings* » *Local Policies* » *Security Options*
44 under *"Interactive Logon: Prompt user to change password before expiration"*).
45 However it has no reality in LDAP referential. A
46 *"password warning time before password expiration"* variable can be
47 specified in LemonLDAP::NG to do so.
48
49
50 .. attention::
51
52 Note: since AD 2012, each user can have a specific
53 password expiration policy. Then, the "maximum password age" can have
54 different values. This is currently unsupported in LemonLDAP::NG because
55 every policy must be computed with their precedence to know which
56 maximum password age to apply.
57
58
59 Mandatory password change
60 ^^^^^^^^^^^^^^^^^^^^^^^^^
61
62 Some configuration is required in *General parameters* » *Authentication parameters* » *LDAP parameters* » *Password*:
63
64 * Enable **Change as user**
65 * Enable **Allow to reset an expired password**
66
67 Password expiration warning
68 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
69
70 To configure warning before password expiration, you must set two
71 variables in Active Directory parameters in Manager:
72
73 - **Password max age** : number of seconds after the last password
74 change, before it expires. It must match AD policy
75 - **Password expire warning** : number of seconds between password
76 expiration and the date from which user is warned his password will
77 expire.