i am using C++ Win32 API.
i have done to connect AD using ldap functions & create a attribute.
i done to set & get single values to attributes from AD.
Now,i want to set multiple values in myown attribute.the attribute name is "UsrAttrib".
how to set array of value into this attribute?
And i already tried to get "objectClass" attribute value,using below code.
usrValue = ldap_get_values(
pLdapConnection, // Session Handle
pEntry, // Current entry
"ObjectClass");
the attribute actual value is top;person;organizationalPerson;user
But usrValue
only gives top
only.
and i check using ldap_count_values
it gives 4
.
How to i get all values from that attribute?