views:

430

answers:

2

We are using OpenLDAP client library to conect to an LDAP server. The problem is that if there is no activity for some time, server (or firewall in the middle) drops TCP connection.

Our current implementation of "keep-alive" just does search for baseDN from time to time - any better ideas ?

+1  A: 

The only alternative seems to be reconnect

ldap_set_option( ld, LDAP_OPT_RECONNECT, LDAP_OPT_ON );

Dmitry Khalatov
A: 

LDAP_OPT_RECONNECT is not available in OpenLdap

Alin