Hello, i am running OTRS3.3.8 with ldap sync for both customers and agents and everything works perfectly. However, now that we got the setup right and all, my boss whats to customize some more for easier response to the customers. At the AgentTicketZoom screen we have a Customer Block located at the right side correct ? I would like it to also display the persons Phone and Adress.
In my sync code inside config.pm i have this:
CustomerKey => 'uid',
CustomerID => 'mail',
CustomerUserListFields => ['cn', 'mail'],
CustomerUserSearchFields => ['uid', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 3500,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
# # # show now own tickets in customer panel, CompanyTickets
CustomerUserExcludePrimaryCustomerID => 0,
# # # add a ldap filter for valid users (expert setting)
# CustomerUserValidFilter => '(!(description=gesperrt))',
# # # admin can't change customer preferences
AdminSetPreferences => 0,
# # # cache time to live in sec. - cache any ldap queries
CacheTTL => 0,
Map => [
# # # note: Login, Email and CustomerID needed!
# # # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
[ 'UserTitle', 'Title', 'title', 1, 0, 'var', '', 0 ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var', '', 0 ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var', '', 0 ],
[ 'UserLogin', 'Username', 'uid', 1, 1, 'var', '', 0 ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var', '', 0 ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var', '', 0 ],
# # # [ 'UserCustomerIDs', 'CustomerIDs', 'second_customer_ids', 1, 0, 'var', '', 0 ],
[ 'UserPhone', 'Phone', 'officephonenumber', 1, 1, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'department', 1, 0, 'var', '', 0 ],
[ 'UserComment', 'Comment', 'description', 1, 0, 'var', '', 0 ],
],
};
Where i changed :
[ 'UserPhone', 'Phone', 'officephonenumber', 1, 1, 'var', '', 0 ],
[ 'UserAddress', 'Address', 'department', 1, 0, 'var', '', 0 ],
To fetch the correct objects that i need it to get which in my ldap are officeohoneoumber & department.
I found out that i need to edit AgentCustomerTableView.DTL to display it in the block, but the information is NOT being loaded to OTRS. As i check my customer inside the admin area the fields phone and adress remain empty, therefor i cant display tham in the block.
Is there a way to reload my config.pm or is there something i am doing wrong ?
Thank you in advice. I appreciate any help i can get from you guys.
Edited to add:
I also noticed that any information inside a customer info that was MANUALLY created by the admin, will show up in that block. I created a new user called Teste and filled all the fields with something, and they show in there. However when my user is a LDAP user, it only shows his name, last name, e-mail and a link to his open tickets. Maybe this piece of information can help u guys figure it out to help me.
Thank you.
-- Rita
Updating customer info with ldap sync
Moderator: crythias
-
- Znuny newbie
- Posts: 34
- Joined: 15 Apr 2014, 15:35
- Znuny Version: 3.3.6
- Real Name: Rita Maul
- Company: Sesc
Updating customer info with ldap sync
-- Rita Maul