aspose file tools*
The moose likes Tomcat and the fly likes help with basic authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "help with basic authentication" Watch "help with basic authentication" New topic
Author

help with basic authentication

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I'm not the original developer who set this up, but I'm told we had to do it this way because our main database where most of the data for our web app would not authenticate with Tomcat, so they set up a MySQL database on the webserver whose only reason for existence is to authenticate the users. Now we have an updated version of the main database we use (which we connect to over ODBC, not JDBC--yeah, don't ask), and so we're curious as to whether or not we might now be able to authenticate with this updated database instead of still having to rely on this second MySQL database.

I'm not really familiar with how to change this part of our web.xml, though:



Any ideas? Since there's no JDBC driver for our main database, I'm thinking we can't even use that JDBCRealm stuff anymore, and wondering if we might have to convert from basic authentication to form-based authentication. Thanks a bunch for any suggestions!
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312


This will help you.
[ September 16, 2004: Message edited by: Somkiat Puisungnoen ]

SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Carl Sampson
Greenhorn

Joined: Apr 09, 2003
Posts: 22
You could use the Jdbc-Odbc Bridge-

The driverName is sun.jdbc.odbc.JdbcOdbcDriver
The URL would look something like jdbc dbc:<connection name>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with basic authentication