RE: Form based authentication
Hi I have been using Tomcat 3.2.3 with form based authentication. It works great. However, I have an additional requirement now. We need to have another home page with the username and password boxes on the home page directly which when submitted must access a protected resource. I understand that setting the form action to j_security_check here will not work because the login page will not be triggered and the URL path is not stored. One way I thought of doing this was to set the action to the protected URL to trigger the login page and try to retrieve the username and password instead of getting it from the user at this point. Just like tomcat stores the URL path does it also store other parameters from the request that triggered the login page? If so, how do I retrieve it? Is there any other way I can do this? Thanks in advance for the help. Suchi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JDBC realm
Thanks for your help. My problem was that my classpath was not set to include the Oracle driver which caused Tomcat to die when I started it. Once I fixed that it is working fine. Thanks Suchithra Tom Woteki wrote: Did you in fact set up the userTable and userRoleTables tables in Oracle and did you specify security constraints in your web.xml for the application? -- Tom Woteki, a.k.a. Dr. Wo mail to:[EMAIL PROTECTED] 202-544-2743 (fax) http://www.woteki.com/wines -- a pure Java, Apache-Tomcat web application running under MacOSX From: Suchi Somasekar [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 21 Feb 2001 12:31:52 -0500 To: [EMAIL PROTECTED] Subject: JDBC realm - Pls help Hi I am a new user of tomcat and I am having trouble getting the JDBC realm to work. I am using Tomcat 3.2.1 on Windows2000 and I am testing a small sample application that I wrote. Everything including the user authentication works great when I use the "SimpleRealm". But, When I tried to use the JDBC realm the server will not start, it just dies with no error messages, no log messages. I have made absolutely no other changes except comment out the SimpleRealm and include the JDBC realm information to the server.xml and added the Oracle driver in tomcat/lib. The following is the relevant portion of my server.xml !-- RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@testserver:1521:TEST3" connectionName="readonly" connectionPassword="nowrites" userTable="usernames" userNameCol="username" userCredCol="password" userRoleTable="userroles" roleNameCol="rolename" / Can someone please tell me what I am missing. Thanks Suchithra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
JDBC realm - Pls help
Hi I am a new user of tomcat and I am having trouble getting the JDBC realm to work. I am using Tomcat 3.2.1 on Windows2000 and I am testing a small sample application that I wrote. Everything including the user authentication works great when I use the "SimpleRealm". But, When I tried to use the JDBC realm the server will not start, it just dies with no error messages, no log messages. I have made absolutely no other changes except comment out the SimpleRealm and include the JDBC realm information to the server.xml and added the Oracle driver in tomcat/lib. The following is the relevant portion of my server.xml !-- RequestInterceptor className="org.apache.tomcat.request.SimpleRealm" debug="0" / -- RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@testserver:1521:TEST3" connectionName="readonly" connectionPassword="nowrites" userTable="usernames" userNameCol="username" userCredCol="password" userRoleTable="userroles" roleNameCol="rolename" / Can someone please tell me what I am missing. Thanks Suchithra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]