slapi_get_bind_dn()
This slapi routine returns the bind DN
of the client.
- Syntax
#include <slapi-plugin.h> int slapi_get_bind_dn( Slapi_PBlock *pb, char **bindDN );- Input Parameters
-
- pb
- A pointer to a parameter block.
- bindDN
- Specifies the bind DN of the client.
- Returns
- If the return code is
LDAP_SUCCESSand the bind DN is set, this API retrieves the bind DN of the client. - Usage
- The
slapi_get_bind_dn()routine returns the bind DN of the client. The caller is responsible for freeing the memory that is allocated for the returned bind DN if the return code isLDAP_SUCCESSand the bind DN is set. - Errors
- This API returns the following error codes:
LDAP_PARAM_ERROR- If thepbparameter is nullLDAP_OPERATIONS_ERROR- If the API encounters error that processes the requestLDAP_NO_MEMORY- Failed to allocate required memory.
- See also
- slapi_modrdn_internal().