auth_ldap Timeout? Errors showing ldap_simple_bind_s() failed
Posted on 2006-06-09
I have an Apache 2.2.0 (Win32) installation
using LDAP authentication against an Active Directory.
It works fine - able to authenticate as expected.
If no one uses a secured page for like 10 minutes (aprox) - when they reload the page -or- go to another secured page, they see a Server Misconfiguration error page.
If you refresh the page after the error, it will then show the page correctly.
If there are a lot of people using the site, the error doesn't show up.
The Apache error logs shows
 auth_ldap authenticate: user test authentication failed; URI /test/People.php [LDAP: ldap_simple_bind_s() failed][Unavailable]
It is almost like the ldap connection is cached and times out. And then after the error the LDAP connect is reconnected
Also, the pages are .php - PHP is 5.1.2 with cacheing configured - but I'm thinking this is an Apache issue
Thanks for any help