To get all of the values of a particular attribute use ldap_count_values
and ldap_get_values
on the result of a search for the attribute. See the Searching a Directory example.
To set multiple values for a particular attribute you can list them all in the mod_values
member of the ldapmod
structure, or you can create multiple LDAP_MOD_ADD
structures.