ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | xmlc List | September 2006 Index

<--  Date Index     <--  Thread Index    

using JDBC Realm


Hi all
 
I am using Enhydra 5.1 .I want to use JDBC Realm for form based authentication.
 
Mine is a Enhydra Application.
 
I could not find any documentation.
 
I tried changing the web.xml  and entering
<security-constraint>
  <web-resource-collection>
   <web-resource-name>Protected Area</web-resource-name>
   <!-- Define the context-relative URL(s) to be protected -->
   <url-pattern>/*</url-pattern>
   <http-method>DELETE</http-method>
   <http-method>GET</http-method>
   <http-method>POST</http-method>
   <http-method>PUT</http-method>
  </web-resource-collection>
  <auth-constraint>
   <role-name>Admin</role-name>
  </auth-constraint>
  <user-data-constraint>
   <transport-guarantee>
    NONE
   </transport-guarantee>
  </user-data-constraint>
 </security-constraint>
 <login-config>
  <auth-method>FORM</auth-method>
  <form-login-config>
   <form-login-page>/LoginPresentation.po</form-login-page>
   <form-error-page>/LoginPresentation.po</form-error-page>
  </form-login-config>
 </login-config>
 
 
 
and
<Realm className="org.apache.catalina.realm.JDBCRealm"
  debug="99"
  driverName ="net.sourceforge.jtds.jdbc.Driver"
  connectionURL ="jdbc:jtds:sqlserver://XXX:1433?user=XXX;password=XXX"
  userTable="tbluser"
  usernNameCol="UserId"
  userCredCol="Password"
  userRoleTable="tblUser"
  roleNameCol ="Role" />
........

in the server.xml
 
 
I put these server.xml and web.xml back into the tomcat.jar  and restart enhydra server(Multiserver.bat)
 
When i access the application the authentication does not take place at all. I am able to access any protected pages.
 
What am i doing wrong...?
 
Thanks in advance
-Rafeeq


<--  Date Index     <--  Thread Index    

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.