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

Re: Check if Ldap connection is live



At 06:29 AM 10/12/2005, Ramya Krishnan wrote:
>I have a daemon that maintains connection to the LDAP server. If now the slapd is restarted then the existing connections are rendered useless. Is there a function (API) that checks the status of the connection (something similar to MYSQL_PING)

The client LDAP library provided in OpenLDAP Software include
numerous functions which can be used to "ping" a server.
Most commonly one of the search functions (e.g., ldap_search*)
with arguments suitable for reading the Root DSE.

Kurt