I am writing an application using Weblogic 6.1 with LDAP for security. I am also using FORM based authentication. So here is my problem: When a user logs in everything works fine. When a user mistypes a password less than three times, everything again works as expected. However when a user mistypes a password for the 4th tume the LDAP throws an exception saying that the maximum number of retry attempts exceeded. That is the behavior that I would like to get by the problem is that the exception is thrown in j_security_check and I have no way of catching it and dealing with it myself so I get the ugly Error 500 in browser. Any ideas?
Simon Brown
sharp shooter, and author
Ranch Hand
Joined: May 10, 2000
Posts: 1860
posted
0
The error page stuff in the web.xml file might be of some use here as it allows you to forward to a page when a specific error or exception occurs. (not sure if it works 100% in WebLogic though - we've certainly had some problems with 500's still appearing in the browser :roll: ) Simon
Manohar Karamballi
Ranch Hand
Joined: Jul 17, 2001
Posts: 227
posted
0
As simon told u can use error page or u can set an error page for form based login just like u set login page for that. see WLS doc for further details.
Simon Brown
sharp shooter, and author
Ranch Hand
Joined: May 10, 2000
Posts: 1860
posted
0
We also have an LDAP server that we are authenicatnig against and I've just had exactly the same error! As a "catchall", you can use something like the following in the your web.xml file:
Since this is more Servlet related, I'll move this over to the Servlets forum Simon [ May 02, 2002: Message edited by: Simon Brown ]
Aleksey Matiychenko
Ranch Hand
Joined: Apr 03, 2001
Posts: 178
posted
0
Thanks. That works. A follow up question though: Is there a way to see the message of the thrown exception? Thanks
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.