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