Authenticating Against Users Defined In a Database - Tomcat

E

Eddy C

Could someone point me in the right direction - I'm trying to
authenticate users against a SQL Server database and found plenty of
articles on how to create tables such as user-roles but I want to use
the actual users defined in SQL Server, because the users are also
directly logging into the db. I also tried using NTLM but our
production environment will not allow this.

TIA
 
A

Abhijat Vatsyayan

I can think of three possible approaches to this -

* Provide custom implementation for org.apache.catalina.Realm
interface. This implementation should use SQL server users.
* If possible, create dynamic views to work with JDBCRealm.
* Provide implementation for interface org.apache.catalina.UserDatabase,
bind it to a JNDI name and use org.apache.catalina.realm.UserDatabaseRealm.

You might also want to look at tomcat javadocs .

Abhijat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,255
Members
46,853
Latest member
GeorgiaSta

Latest Threads

Top