Hi, i have tomcat 6.0.18 and configured it to use JNDIRealm for a specific path:
<Realm className="org.apache.catalina.realm.JNDIRealm" test="89" connectionName="CN=tomcat,CN= Users,DC=host,DC=de" connectionPassword="***" connectionURL="ldap://host:389/" referrals="follow" userBase="DC=host,DC=de" userRoleName="memberOf" userSearch="(&(sAMAccountName={0})(objectClass=user))" userSubtree="true" /> <login-config> <auth-method>BASIC</auth-method> <realm-name>JNDIRealm</realm-name> </login-config> The problem is that sometimes it is working fine, but sometimes Tomcat got an exception and users can not be authenticated, because the connections to ldap (AD) timed out. 2010-10-28 15:53:08,592 ContainerBase.[Catalina] ERROR [ttp-8443-1] - Exception performing authentication javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: host.de:389 [Root exception is java.net.ConnectException: Connection timed out: connect]] Have someone an idea or a hint to find out, why these connections are timing out sometimes? Thanks in advance