tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julie.f.mcc...@jpmorgan.com
Subject jdbc realm + form authenication setup
Date Mon, 29 Apr 2002 15:48:55 GMT
Hello

I have been unable to set up jdbc realm with form authenication method.  I
have the jsp, the server.xml and web.xml files configured but it doesn't
work - I am missing sometime but have not found a good resource to explain
exactly what this is.  Does anybody have an example/know of a good
resource?   Using Tomcat 4.0 and Sybase.

in server.xml
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.sybase.jdbc2.jdbc.SybDriver" digest="digest" connectionURL
="jdbc:sybase:Tds:server:port/db?user=user&amp;password=user" userTable="
userTable" userNameCol="nameTable" userCredCol="user_pswd" userRoleTable="
roles" roleNameCol="roleName"/>

in web.xml
security-constraint>
  <web-resource-collection>
     <web-resource-name>Configuration</web-resource-name>
     <!-- Define the context-relative URL(s) to be protected -->
     <url-pattern>/assistant</url-pattern>
  </web-resource-collection>
  <auth-constraint>
     <!-- Anyone with one of the listed roles may access this area -->
     <role-name>operate</role-name>
  </auth-constraint>
</security-constraint>
<login-config>
  <auth-method>FORM</auth-method>
  <realm-name>EBasic Authentication Area</realm-name>
</login-config>

Thanks
Julie


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message