Hi, I've written a prebind plugin for slapd, and I was wondering if there is a way to resolve connected client's IP address somehow, like IBM Tivoli has slapi_get_client_ip()/slapi_get_source_ip() functions? If there is no suitable functions already in openldap, does anyone know a feasible way to do it?
Jani Salonen wrote:
Hi, I've written a prebind plugin for slapd, and I was wondering if there is a way to resolve connected client's IP address somehow, like IBM Tivoli has slapi_get_client_ip()/slapi_get_source_ip() functions? If there is no suitable functions already in openldap, does anyone know a feasible way to do it?
I don't use slapi, haven't looked to see if such functions exist or not. If you want to add them, you can get the client IP in the connection->c_peer_name field.
openldap-technical@openldap.org