When setting up a new Moodle install with LDAP authentication I was finding that my test users wen’t able to login with the normal Active Directory user name/password (sAMAccountName). After a little playing I found that they could login fine if they used what is known as the container name (cn).

After a little digging it turns out this is one of the big ‘gotchas’ about Moodle and LDAP in that the default Moodle LDAP setup goes for the cn user attribute as the username instead of the sAMAccountName user attribute as you would expect.

Simple solution is to go into the LDAP authentication on your Moodle install and put in samaccountname as you see above in the box ‘User attribute’.

VN:F [1.9.22_1171]
Thumbs up if this article helped you 🙂
Rating: +3 (from 3 votes)
Moodle and LDAP authentication - login doesn’t work!, 100% based on 3 ratings

5 Responses to Moodle and LDAP authentication – login doesn’t work!

Leave a Reply to Bryan Cancel reply

Your email address will not be published. Required fields are marked *