Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Connect to SQL Server from A Java Program running on Linux box using Windows Authentication

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to connect to a SQL Server database using JavaKerberos Authentication.
I have performed below steps -
1. Created krb5.conf using VAS tools. krb5 has kdc and realm setting and set up properly.
2. Created a keytab using ktutil .
3. Created a TGT using kinit command and ticket was saved in a ticketcache file.
4. Java Program is using JDBC URL which has integratedSecurity as true and authenticaionScheme as JavaKerberos.
5. While running program i am supplying SQLServerDriver.Conf and krb5.conf .

Here is the link which i am following https://msdn.microsoft.com/en-us/library/gg558122(v=sql.110).aspx

While invoking this , i am getting 'integrated authentication failed. clientconnectionid' because of javax.security.auth.login.loginexception :login failure : all modules ignored.

Please suggest what may be missing in this.
 
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic