tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Authentication with JAAS / Form Autenthication/ "j_security_check"
Date Thu, 27 Nov 2003 22:08:06 GMT
On 11/27/2003 06:41 PM Jose Antonio Chirinos wrote:
> Hi, i have a web application that use web authentication through
> "j_security_check" servlet; i need to add an extra parameter diferent
> of "j_password" and "j_username"; i guess that i have to put the
> extra parameter in the login form and in the definition of the realm;
> but where i have to include the code for the comparation of the new
> parameter.Thanks in Advanced.Jose Antonio Chirinos.

Jose,
tomcat (and all servlet spec compliant app servers) won't process any 
further parameters other than the two you mention. When you code your 
realm, you code a LoginModule or equivalent which is passed these 2 
parameters.

This means the only option you have is to instruct the user to place the 
extra parameter on the end of the username, perhaps after an appropriate 
seperator character, so that you can then split your extra parameter 
from the user name in your realm code.


HTH
Adam
-- 
struts 1.1 + tomcat 5.0.14 + java 1.4.2
Linux 2.4.20 RH9

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message