37.7. slapi_rdn_get_first()
This function gets the type/value pair corresponding to the first RDN stored in a Slapi_RDN structure. For example, if the RDN is cn=Joey, the function will place cn in the type return parameter and Joey in value.
#include "slapi-plugin.h" int slapi_rdn_get_first(Slapi_RDN *rdn, char **type, char **value);
This function takes the following parameters:
|
rdn
| The Slapi_RDN structure containing the RDN value(s). |
|
type
| 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. |
|
value
| 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 one of the following values:
- -1 if rdn is empty.
- 1 if the operation is successful.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.