I have written a custom authentication plugin in C for OAM 10g. In this plugin i am making ldap connection to the OVD which in turn connects to a database adapter.
I making an ldap connection for every transaction and releasing it at end of the transaction . Since this way is not recommended, the approach needs to be changed.
I now open the connection when the plugin is initialized(that is the first time it is loaded) and reuse this connection for all request. But the drawback is if for some reason i am unable to connect to ldap then i can't bind to OVD again till i restart OVD and the plugin is loaded. Any help will be appreciated on what should be the right approach to do this?