LDAP Connector

LDAP Connector

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!