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
- remove any data mapping in place in the ldap settings for your custom profile field
- remove the fields from users -> accounts - User Profile Fields
- remove the custom category (if you had them)
- Purge all cache (just to be sure)
- Go back to the ldap data mapping page in Plugins -> Auth ->Ldap server -> data mapping and confirm your old fields are gone
- Add your custom category
- Add your custom fields in users -> accounts - User Profile Fields but remember
- Use lowercase values for the shortname and probably best to avoid spaces etc.
- I used the text input field type so can't comment on anything else working
- 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
- 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)