Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7.1, 2.9
-
MOODLE_27_STABLE, MOODLE_29_STABLE
-
MOODLE_29_STABLE
-
m29_
MDL-47004_LDAP_Better_Default_ObjectClass -
Description
The objectClass provided by default for Active Directory is user, https://github.com/moodle/moodle/blob/deae60239d70880053ae271a573c782880eb9bb2/lib/ldaplib.php#L67.
This default choice combined with using auth/ldap/cli/sync_users.php drives to sync also the computer objects.
The best selector for user objects is (samAccountType=805306368) while someone could argue that we should exclude the disabled accounts via (!(userAccountControl=514)).
My proposal is to default the AD choice to (sAMAccountType=805306368), at least in master: this will help beginners in having a smarter AD default configuration.
Note: I'm available in creating the PR(s) once agreed on the improvement and on how proceeding.
Attachments
Issue Links
- has been marked as being related by
-
MDL-51723 Users are unenrolled on login under LDAP auth with Active Directory
-
- Closed
-