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_SUCCESS and the client IP is set, this API retrieves the IP address of the client connection.
Usage
A slapi API 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 the pb parameter is null
  • LDAP_OPERATIONS_ERROR - If the API encounters error that processes the request
  • LDAP_NO_MEMORY - Failed to allocate required memory.
See also
slapi_get_source_ip().