Hi,
I've been developing an authentication plugin that is essentially an extension of the LDAP auth plugin. As part of this plugin I wanted to do 3 things, ALL without changing any core moodle code. That is I want the plugin to do everything, that way I can distribute it as a plugin not a patch. The three things I wanted to do are.
1. Change the auth plugin config page (config.html) to divs not tables
2. Be able to map LDAP fields to ALL standard user profile fields (ICQ, MSN, SKYPE, etc)
3. Be able to map LDAP fields to the custom (already defined) user profile fields.
I've been able to accomplish 1 & 2 of the list above but only part of 3.
The part of 3 I've done is: I can extract the defined custom user profile fields and display them on the plugins config page. I can also get the mappings to save to the corresponding LDAP fields. What I have not been able to figure out is how to update the Moodle database with the LDAP data, WITHOUT modifying \lib\moodlelib.php for the custom user profile fields.
The tracker MDL-16982 has given some clues as how I might accomplish this, but I can't figure out a way to have the code to update/add the custom user profile fields run at the correct point of execution from the plugins code without modifying moodlelib.php
Does anyone have any ideas how/if this can be accomplished?
Thanks,