I am encountering a problem where I am not able to map LDAP attributes to LR User attributes, which are not available in Control Panel (for example "comments").
For example, if I map LDAP attribute 'department' to LR User model attribute jobTitle, it works:
ldap.user.mappings=jobTitle=department
Now if I want to read the same attribute to a field which is not configurable through CMS then it does not work (meaning that the value is never assigned):
ldap.user.mappings=comments=department
I have also tried custom mappings which also does not work. Created a custom attribute by the name userDepartment to User object. And the corresponding mapping in portal-ext.properties:
ldap.user.custom.mappings=userDepartment=department
So in a nutshell - I am able to map any field coming from LDAP to LR User attributes which are shown in Control Panel (screenname, firstname, lastname, password, jobtitle, mail etc) but not to other LR User attributes (comments, custom attributes).
Sidenote: The problem is not related to portal-ext.properties not being read (updated). In every test scenario the previous LDAP settings have been deleted so they would be read from portal-ext.properties again. The fact that properties are correct has been verified from portalpreferences table.
Liferay version 6.2.10 EE