Anyone, please?

2016-02-13 13:46 GMT+00:00 James Michels <[email protected]>:

> Hello,
>
> we're having similar problems and we solve the issue restarting tomcat,
> but it would be wonderful if the exception could be managed automatically
> and even better if it was without restarting tomcat.
>
> however, even with the link I'm not able to find out how to extrapolate
> this to CAS, would this mean modifying the source code? could you please
> include an example on how to implement that exception handler?
>
> thanks
>
> James
>
> 2016-02-12 11:02 GMT+00:00 Misagh Moayyed <[email protected]>:
>
>> 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/.
>>
>
>

-- 
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/.

Reply via email to