If anyone has any insights; could you CC me in the reply. It seems I am having problems receiving the mails from tomcat-user.
Cheers, Ben > -----Original Message----- > From: HILL, Ben -Syntegra UK > Sent: 18 May 2004 12:17 > To: [EMAIL PROTECTED] > Subject: Help: Tomcat JAAS Authentication Help (How does > j_security_check work?) > > > I'm trying to implement a servlet filter that intercepts > requests to a servlet and if the user is not authenticated, > run the supplied username and password through a JAAS > authentication cycle. > > I would like to know how this process is done using the > j_security_check as I'd like to implement the same > functionality. I wish to be able to JAAS authenticate when > the filter intercepts the request so that after the > authentication I can call request.isUserInRole(), > request.getUserPrincipal(), > request.getRemoteUser() etc. > > After looking at the API docs at > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/ api/index.html I have found the org.apache.catalina.realm.JAASCallbackHandler and suspected that if I can find the realm, (set up as a JDBC realm in the server.xml), and then pass in the username and password to this callback handler - I can run the .login() method somehow. Any help would be appreciated, if you know of any howtos or docs, that would be great! Cheers, Ben ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.btsyntegra.com ******************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.btsyntegra.com ******************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]