I've been using LDAP auth from Active Directory successfully for a a while now with several Data Mapping relationships set on standard user profile fields.
I've just decided to try using Data Mapping for a custom user profile field and it's generating errors from auth/ldap/cli/sync_users.php (using Moodle 2.6.1).
My custom field has a shortname of LUI and I'm mapping it to an AD attribute which will map successfully to a standard profile field like "Phone 1".
The PHP Notice generated is:
Undefined property: stdClass::$profile_field_LUI in /var/www/auth/ldap/auth.php on line 1022
All standard profile fields possess a sensible value of $key on line 1022 (such as firstname or lastname or idnumber as found in the $user object) but the custom LUI field in not present in the $user object being used here.
Is there some documentation I have overlooked on using Data Mapping for custom profile fields with LDAP auth?