Searches the syntaxes for an attribute type, and returns a copy of its OID string.
#include "slapi-plugin.h" int slapi_attr_get_oid_copy( const Slapi_Attr *attr, char **oidp );
This function takes the following parameters:
Attribute that contains the desired type.
Destination string of the copied attribute type OID.
This function returns one of the following values:
0 if the attribute type is found.
-1 if it is not.
Use this function to search the syntaxes for an attribute type’s OID.
You should free this string using slapi_ch_free().