Your DNResolver config should have a property where you could plug in an exception handler. You likely should use ReopenOperationExceptionHandler: http://www.ldaptive.org/docs/guide/connections.html (Operation Retry)
> -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > [email protected] > Sent: Thursday, February 11, 2016 4:16 AM > To: [email protected] > Subject: [cas-user] Forcing CAS to reconnect to LDAP > > Hi, > > We're running CAS 4.1.2, and for authentication we use an LDAP backend. > Somethimes the connection between CAS and the LDAP backend is > interrupted, and CAS throws an exception like this: > > 2016-02-11 09:07:46,428 ERROR > [org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - > <LdapAuthenticationHandler: Unexpected LDAP error (Details: > javax.naming.NamingException: LDAP response read timed out, timeout > used:3000ms.)> > 2016-02-11 09:07:46,432 WARN > [org.jasig.cas.web.view.CasReloadableMessageBundle] - <The code > [authenticationFailure.UNKNOWN] cannot be found in the default language > bundle and will be used as the message itself.> > > We use pretty much a standard "LDAP Supporting Anonymous Search" > defined in the docs [1]. > > Is there a way to force CAS to reconnect to the LDAP backend when this > exception is thrown? > > Thank you. > > Nicolás > > [1]: > http://jasig.github.io/cas/4.1.x/installation/LDAP-Authentication.html > > -- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at > https://groups.google.com/a/apereo.org/group/cas-user/. -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
