Hola a todos, Marcos:
JDBCREalm is only a way to store user info ( username, role & password )
into a DB instead of using SimpleRealm and tomcat-users.xml file from
%tomcat_home%/conf.
So web.xml ( which a file governed in content by the spec ) has nothing
to do with JDBCRealm, please explicit what data is on the user test on
the DB, post your web.xml file and i will try to solve your problem, but
it's only related to this 2 things..
Saludos ,
Ignacio J. Ortega
> -----Mensaje original-----
> De: marcos Martinez [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 17 de enero de 2001 16:40
> Para: [EMAIL PROTECTED]
> Asunto: [Fwd: about JDBC Realm with mysql DB]
>
>
>
> It would be very nice if someone can post the basically
> needed entries in the web.xml file for a JDBCRealm.
>
> I want to make it using a mysql DB. I want to make avaliable
> the access
> to the protected areas to the entry which are in the DB and not to the
> one´s that are in the web.xml:
>
> <auth-constraint>
> <!-- Anyone with one of the listed roles may access this area
> -->
> <role-name>tomcat</role-name>
> <role-name>role1</role-name>
> </auth-constraint>
>
> I was able to arrive to the point where in the console appears:
>
> ContextManager: JDBCRealm: Auth ok, user=test
>
> but in both cases (when i entry a good info and info that is
> not in the
> DB) I´m redirect to the same error page.
>
>
> P.D.: Linux 2.2.13 - Tomcat 3.2.1
>
> Thanks a lot.
>
> Marcos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]