Gets the type/value pair corresponding to the first RDN stored in a Slapi_RDN structure.
#include "slapi-plugin.h" int slapi_rdn_get_first(Slapi_RDN *rdn, char **type, char **value);
This function takes the following parameters:
The Slapi_RDN structure containing the RDN value(s).
Repository that will hold the type of the first RDN. If this parameter is NULL at the return of the function, it means rdn is empty.
Repository that will hold the type of the first RDN. If this parameter is NULL at the return of the function, it means rdn is empty.
This function returns -1 if rdn is empty, or 1 if the operation is successful.
This function gets the type/value pair corresponding to the first RDN stored in rdn. For example, if the RDN is cn=Joey, the function will place cn in the type return parameter, and Joey in value.