Win a copy of Functional Design and Architecture this week in the Functional programming 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic