Forum Discussion
APM LDAP Query with multiple values for same key
When using APM (v12.1.2) to query LDAP for the value of "VendorRole", a user may have multiple values stored separately with the same key, i.e.
VendorRole = "Role1"
VendorRole = "Role2"
VendorRole = "Role3"
etc.
But the LDAP Search function only returns the first value.
How can I get the others? Is there a way to request an array or list in the query?
The ideal result would be session.ldap.last.attrib.VendorRole = "Role1 Role2 Role3", but I'll take what I can get. Right now, I can't get any value beyond the first one.
Thanks!
- Stanislas_Piro2
Cumulonimbus
The default APM behavior when LDAP server returns multi value attribute is to store it in one attribute:
session.ldap.last.attr.VendorRole = "|Role1|Role2|Role3|"
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com