Forum Discussion

Stan_Ward's avatar
Stan_Ward
Icon for Altocumulus rankAltocumulus
Dec 13, 2017

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!

  • 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|"