Thanks Rick. I got it going just fine. I feel _really_ stupid because I
have both the O'Reilly JSP and Servlet books. When I got it working I had a
desire to learn more ... and it then hit me I shouldn't have had to ask at
all. D'oh! Thank you for your patience =)
Eddie
- Original Message -
From: Rick Fincher [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 2:41 PM
Subject: Re: Custom Login Procedure
auth-constraint
Hi Eddie,
Put something like the following in your web.xml and set up a realm in
server.xml. The transport-guaranteeCONFIDENTIAL tag causes SSL to be
used, drop it if you don't want SSL.
Your login form has to have a form with action=j_security_check and that
form must have the input fields j_username and j_password.
Rick
security-constraint
web-resource-collection
web-resource-nameApp Name/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
role-nameuser/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.htm/form-login-page
form-error-page/loginFailed.htm/form-error-page
/form-login-config
/login-config
security-role
role-nameuser/role-name
/security-role
security-role
role-nameadmin/role-name
/security-role
- Original Message -
Hello everyone.
I'd like to use Tomcat's built-in authentication, but have Tomcat redirect
to a custom login page instead of displaying a dialog.
Can this be done?
Thanks loads!
Eddie
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]