Puts the values contained in an attribute into an array of berval structures.
#include "slapi-plugin.h" int slapi_attr_get_bervals_copy(Slapi_Attr *a, struct berval ***vals );
This function takes the following parameters:
Attribute that contains the desired values.
Pointer to an array of berval structure pointers to hold the desired values.
This function returns one of the following values:
0 if values are found.
-1 if NULL.
This function copies the values from an attribute into an array of berval structure pointers.
Free this array using ber_bvecfree(3LDAP).