Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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)