slapi_get_client_ip()
This slapi routine returns the IP address
of the client that is bound to the server.
- Syntax
#include <slapi-plugin.h> int slapi_get_client_ip( Slapi_PBlock *pb, char **clientIP );- Input Parameters
-
- pb
- A pointer to a parameter block.
- clientIP
- The IP address of the client connection.
- Returns
- If the return code is
LDAP_SUCCESSand the client IP is set, this API retrieves the IP address of the client connection. - Usage
- A
slapiAPI that returns the IP address of the client that is bound to the server.Note: The user must free the returned client IP after its use. - 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_get_source_ip().