• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help with basic authentication

 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


This will help you.
[ September 16, 2004: Message edited by: Somkiat Puisungnoen ]
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could use the Jdbc-Odbc Bridge-

The driverName is sun.jdbc.odbc.JdbcOdbcDriver
The URL would look something like jdbc dbc:<connection name>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic