When you set the following property in the web agent AMAgent.properties configuration file, be aware of the web server behavior that typically applies:
com.sun.am.policy.agents.config.profile.attribute.map
Most web servers demonstrate the following behavior:
Prefix the header name by HTTP_.
Replace all lower case letters with upper case letters.
Replace all hyphens with underscores.
Therefore, use underscores “_” rather than hyphens “-” in the header name mapped to the LDAP attribute name to avoid problems. For example, the following property setting could be problematic:
com.sun.am.policy.agents.config.profile.attribute.map = cn|common-name
Web servers search for the header HTTP_COMMON_NAME, and would not find HTTP_COMMON-NAME.
You can use the following property to customize the “HTTP_” prefix:
com.sun.am.policy.agents.config.profile.attribute.cookie.prefix |
The following example demonstrates how this property can be set:
com.sun.am.policy.agents.config.profile.attribute.cookie.prefix = EXAMPLE_ |