rsatrio / Keycloak-Federation-ExistingDB

Keycloak Custom Module for User Federation with Existing DB
MIT License
43 stars 8 forks source link

Not able to login with external db user #4

Closed HimanshuNauti closed 6 months ago

HimanshuNauti commented 6 months ago

What should I write in my JNDI name

"Database JNDI name: The JNDI name of the datasource you want to use (example: java:jboss/datasources/UserDS)"

I have configured this in conf file

db-url=jdbc:sqlserver://localhost;databaseName=newabc;encrypt=false; db-username=him db-password=root

rsatrio commented 6 months ago

Hi @HimanshuNauti , you have to do this : image

So you have to install jdbc driver of Sql Server and find out how to jndi url for that database