tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ostad, James" <JOs...@geneseeisd.org>
Subject Authenticate userrole, using form based login
Date Thu, 04 Dec 2003 15:51:18 GMT
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@geneseeisd.org


Out---> (3)



---------------------------------------------------------------------
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