Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Re: LDAP Auth data mapping custom user fields

$
0
0
by Michael O'Brien.  

While it might be too early to say if they will stick around but in Moodle 2.7 I was able to get custom user profile fields to sync from ldap and use a custom category after they initially didn't work for me.


To undo (as mentioned above) existing non-working customer user fields

  1. remove any data mapping in place in the ldap settings for your custom profile field
  2. remove the fields from users -> accounts - User Profile Fields
  3. remove the custom category (if you had them)
  4. Purge all cache (just to be sure)
  5. Go back to the ldap data mapping page in Plugins -> Auth ->Ldap server -> data mapping and confirm your old fields are gone
  6. Add your custom category
  7. Add your custom fields in users -> accounts - User Profile Fields but remember
    1. Use lowercase values for the shortname and probably best to avoid spaces etc.
    2. I used the text input field type so can't comment on anything else working
  8. Go back to the ldap server settings and re-map your ldap field to your custom field, I used an extra field to sync with a value I already knew worked in the non-custom fields to rule out any possible issue of my ldap not sending the right field or an issue with using a custom category
  9. Set the field to update at login and logout and back in again to verify it worked (if your account is set to use ldap of course)



Viewing all articles
Browse latest Browse all 8256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>