Table of Contents

Search

  1. Preface
  2. Understanding PowerExchange for LDAP
  3. PowerExchange for LDAP Configuration
  4. LDAP Connections
  5. LDAP Data Objects
  6. LDAP Mappings
  7. LDAP Lookup
  8. LDAP Run-Time Processing
  9. Appendix A: Data Type Reference

PowerExchange for LDAP User Guide

PowerExchange for LDAP User Guide

Reading and Writing Multivalued Attributes

Reading and Writing Multivalued Attributes

Multivalued attributes can have multiple values assigned to the attribute. If the data that you want to read from the LDAP directory server contains multivalued attributes, the reads the multivalued attributes and converts them into XML format.
For example, a group membership list with names of everyone in the group is a multivalued attribute. If the list contains four values, test1, test2, test3, and test4, the converts the attributes into the following XML format:
<?xml version="1.0" encoding="UTF-8"?><Objects><Object>test1</Object><Object>test2</Object><Object>test3</Object><Object>test4</Object></Objects>
To write data with multivalued attributes to an LDAP directory server, you must provide the data in XML format.
When you pass special characters, such as & , >, and < in a multivalued attribute, you must convert the special characters into the following equivalent HTML entities:
  • & as &amp;
  • < as &lt;
  • > as &gt;
When reading data, the converts the special characters to its equivalent HTML entity when it serializes the XML.

0 COMMENTS

We’d like to hear from you!