LDAP Authentication but not reach the user name

Picture of Iñaki Arenaza
Re: LDAP Authentication but not reach the user name
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Just a small note to complement Ken's excellent information (thanks Ken!).

Moodle only redirects the user to the profile page if the first name, last name or email is not filled in (either directly by the user, or obtained from and external source like LDAP). So in this particular case mapping the firstname, lastname and email fields would be enought.

In fact, if you are using Moodle 2.2 or later, so can set a default country and city for all your users, that will be used if they don't specify one (or is not obtained from external sources like LDAP). You can set these defaults in "Site administration >> Location >> Location settings".

Saludos. Iñaki.

Average of ratings: Useful (1)
Picture of Ken Task
Re: LDAP Authentication but not reach the user name
Particularly helpful Moodlers

@Iñaki ... thanks for your kind comments.  I like you already ... the way you very politely corrected. ;)  I should have checked.  My 'bad' as they say.

@Gergely ... have you had time to make the changes and test?  Please do let the community know by following up!

'spirit of sharing', Ken

Average of ratings: -
Picture of Gergely Toth
Re: LDAP Authentication but not reach the user name

Hello Ken and Iñaki,

Now seems the auth is works fine and the user data is updated from the LDAP.

Currently im using FirsName, Surname and email.

The root cause was: I used the LDAP attributes what you suggested but I didn't set the "Update Local" and changed the "Update External"

Thank you very much again and I hope this topic will help others in the next time.

Gergely from Hungary


Average of ratings: -