I HAVE TO use MS AD!!! Gosh.
This is what I did and what I understood. It will follow what I can’t understand.
Site Administration -> Users -> Authentication
LDAP server is switched to on (the eye is open) and the order of authentication plug-ins is the following:
- Manual accounts
- No login
- LDAP server
- Email-based self-registration
Inside the LDAP setting, in the User lookup group-field I have:
- User Type = MS ActiveDirectory
- Contexts = dc=iss, dc=it
- Search subcontexts = yes
- Dereference aliases = yes
- User attribute = userprincipalname
Inside my context iss.it, somewhere, I have “Accounts” so I actually get inside Moodle by typing username (stored in userprincipalname field) and related password (stored I don’t know where).
Now I map
Email address and all is right.
Inside LDAP I have a data structure as the following one:
Inside Moodle I have two courses with short name “course01” and “course02”
Site Administration -> Courses -> Enrolments
LDAP check box is selected and inside its Edit page I wrote in the first column of the row “student”
and in the first column of the row teacher
In the second column of the same rows I wrote: “member”
As far as I understand with this settings I am saying to Moodle o look for s*o*m*e*t*h*i*n*g (not accounts but something else) inside the groups living in
ou= student,ou=moodle,dc=iss,dc=it (i.e.: course01 and course02)
or inside the groups living in
ou=teacher,ou=moodle,dc=iss,dc=it (i.e.: course01 and course02).
Let me fix my ideas speaking about students of course01.
I am asking to moodle to look for s*o*m*e*t*h*i*n*g living in the group “couse01” of the context
When Moodle find s*o*m*e*t*h*i*n*g, I am telling to Moodle to look inside the field “member” and to enrol the current user as student in the course course01 only if his/her ??what?? matches the field “member” of the set of s*o*m*e*t*h*i*n*g found.
What is s*o*m*e*t*h*i*n*g? Are them accounts?
MS AD only allow me to add accounts inside groups!!!!!!!!!!
Into accounts I do not have the field “member”.
How can I proceed?
Which current user attribute do I have to compare with the field “member”?
Please try to help me in spite of my so ugly English.
Thank you in advance.
Iñakiiiiiiiiiiiii!!!!!!!!! Help me, please!!!!!!!!!