Looking for advice on this programming problem. I wrote some code - TopicsExpress



          

Looking for advice on this programming problem. I wrote some code in C to query information in Microsoft Active Directory. The client code is written in C is running on Unix and using the OpenLDAP library. I began to notice some calls to ldap_search_ext_s() failed. After some analysis I discovered the magical MaxConnIdleTime was in play. Once my connection was idle for over 900 seconds, AD would close the connection and subsequent calls to ldap_search_ext_s() would fail. So I added some code to track idle time and if a request comes in and the connection has been idle for over 850 seconds I tear it down and rebuild the connection. Wonderful! Worked like a charm! Alas, it now seems some calls into the OpenLDAP library result in the client process simply dying -- no error -- no core dump -- nothing -- the process just goes away. What do you think?
Posted on: Sat, 13 Dec 2014 15:30:42 +0000

Trending Topics



Recently Viewed Topics




© 2015