I have LDAP backend setup for CustomerUser and would like to overwrite a map field with a static value. Currently its pulling the Active Directory field 'company' which is empty. I would like to hard code a value in, lets say 'ABC' but when i change it I presume its looking for the Active Directory attribute "ABC" which doesn't exists returning empty.
Code: Select all
Map => [
...
#want to change this
[ 'UserCustomerID', 'CustomerID', 'company', 0, 1, 'var', '', 0 ],
#to this
[ 'UserCustomerID', 'CustomerID', 'ABC', 0, 1, 'var', '', 0 ],
My original thoughts was to copy Kernel/System/CustomerUser/LDAP.pm, add a switch to the Map array telling LDAP.pm to read it as a staticvalue but that will be a nightmare going forward for updates.