We would like to set headers from a multi valued directory attribute when it only contains 2 characters.
Some might contain 3 or 4 characters, but we only want to return the headers with the attributes that contain 2 characters. For example:
We only want to return LDAPAttribute=AB,CD
SiteMinder documentation is not able to cover all the use case customers have, it requires the user to be familiar with JUEL, and doesn't go a whole lot in detail, and leaves it as an exercise to the reader.
Generally the expression question can be out of support scope, hence customer saw the community discussion threads.
Customer may need to seek HCL service team for further help in configuring response expressions.
Release : 12.8
Component : SITEMINDER FEDERATION SECURITY SERVICES
Here is a configuration example:
Here is web agent response expression configuration from admin ui:
The expression returns any 2 bytes string, character or number.
1. Make sure Variable Name has no underscore.
2. Set response cache to "recalculate value every x seconds".
Testing the application target to a header dump page, you will get:
HTTP_POSTALCODESHORT holds the expected values.