I'd like to use Company ticket so I can allow certain people to view other's tickets.
I use LDAP auth for both customer and agent, but I don' have write access to the LDAP. My question is now, how can I generate secondary customerIDs based on the attributes of each customer.
With the config file, I can map the company ID from an attribute. How to do if I want to generate a secondary customer ID with if-else based on different attributes received from LDAP? Eg:
I have the attributes departement and eduPersonAffiliation. I can read and use them to identify people. I want the UserCustomerIDs set as follow:
Code: Select all
if departement=="inf" & eduPersonAffiliation=="staff"
UserCustomerIDs = "staff;stud;"
if departement=="inf" & eduPersonAffiliation=="stud"
UserCustomerIDs = "stud;"
else
UserCustomerIDs = ""
How can this be implemented with the map in Config.pm?