[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapi_get_client_ip in openldap?

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.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/