  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Authenticate userrole, using form based login | Authenticate userrole, using form based login 2003-12-04 - By Ostad, James
Back Hi, I am using form based authentication with this system: win.2K adv. server SQL 2k Tomcat 4.1
After fixing many problems, thanks to you guys and specially Tim Funk, I am getting this error now, which is giving me a http status 403, access forbidden.
I have checked database and each column name, data, and relationships. They all look OK.
If I commented out the realm section of the server.xml, it does work by using the base database of tomcat.
this is from the context log file:
2003-12-04 09:39:03 Authenticator[]: Security checking request POST /login/j_security_check 2003-12-04 09:39:03 Authenticator[]: Authenticating username 'admin' 2003-12-04 09:39:04 Authenticator[]: Authentication of 'admin' was successful 2003-12-04 09:39:04 Authenticator[]: Redirecting to original '/form' 2003-12-04 09:39:04 Authenticator[]: Failed authenticate() test 2003-12-04 09:39:04 Authenticator[]: Security checking request GET /form 2003-12-04 09:39:04 Authenticator[]: Checking constraint 'SecurityConstraint[RestrictedResources]' against GET /form --> true 2003-12-04 09:39:04 Authenticator[]: Subject to constraint SecurityConstraint[RestrictedResources] 2003-12-04 09:39:04 Authenticator[]: Calling checkUserData() 2003-12-04 09:39:04 Authenticator[]: User data constraint has no restrictions 2003-12-04 09:39:04 Authenticator[]: Calling authenticate() 2003-12-04 09:39:04 Authenticator[]: Restore request from session '21690FF10FB41747F52F1BFFDD248702' 2003-12-04 09:39:04 Authenticator[]: Authenticated 'admin' with type 'FORM' 2003-12-04 09:39:04 Authenticator[]: Proceed to restored request 2003-12-04 09:39:04 Authenticator[]: Calling accessControl() 2003-12-04 09:39:04 Authenticator[]: Failed accessControl() test
this is from the host log file: 2003-12-04 09:39:03 StandardHost[localhost]: Trying the longest context path prefix 2003-12-04 09:39:03 StandardHost[localhost]: Mapped to context '' 2003-12-04 09:39:04 JDBCRealm[localhost]: Username admin successfully authenticated 2003-12-04 09:39:04 StandardHost[localhost]: Mapping request URI '/form' 2003-12-04 09:39:04 StandardHost[localhost]: Trying the longest context path prefix 2003-12-04 09:39:04 StandardHost[localhost]: Mapped to context '' 2003-12-04 09:39:04 JDBCRealm[localhost]: Username admin does NOT have role admin 2003-12-04 09:39:12 HostConfig[localhost]: Deploying discovered web applications
Any suggestion or hint would be appreciated.
thanks,
James Ostad Application Developer/Analyst TMS Department Ex. 4457 E-mail: jostad@(protected)
Out---> (3)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |