Web Servers General Talk - tomcat ignoring JDBC Realm?

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > March 2005 > tomcat ignoring JDBC Realm?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author tomcat ignoring JDBC Realm?
JGH

2005-03-30, 7:57 am

I've added a Realm tag to my server.conf file on my tomcat5.08 server.
I've rebooted (just to be sure). Yet, when I access a web apge on my
server, I am not asked to authenticate. I thought tomcate automatically
threw up an authentication dialog box for you if you added a Realm tag
But the app displays as normal.to your conf.

Here is my server.xml file:

<Server port="8005" shutdown="shutdown" debug="0">

<Service name="Tomcat-Apache">

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
address="127.0.0.1" port="8009" minProcessors="5"
maxProcessors="75"
enableLookups="false" acceptCount="10" debug="0"/>

<Engine name="lightning" debug="0" defaultHost="localhost">
<Logger
className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>


<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:Oracle:thin:@bogusb.wisc.edu:1531:bogus"
connectionName="bogus"
connectionPassword="boguser"
userTable="USERS" userNameCol="USER_NAME"
userCredCol="user_pass"
userRoleTable="USER_ROLES" roleNameCol="ROLE_NAME"/>





<Host name="localhost" debug="0" unpackWARs="true">

<Context path=""
docBase="/home/tomcat/your_application"
debug="0" reloadable="true" />
</Host>
</Engine>

</Service>

</Server>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com