SQL Server Kerberos authentication

40 views Asked by At

I'm trying to set SQL Server with kerberos authentication. I have these configuration files:

  1. keytab file
  2. krb5.conf
  3. jaas.conf

In the jaas.conf file, I have added:

SQLJDBCDriver {
com.sun.security.auth.module.Krb5LoginModule required

useKeyTab=true
debug=true;
keyTab="location of keytab"

principal="principal_name";

And in jvm parameter

-Djavax.security.krb5.conf=krb5.conf -Djavax.security.auth.login.config=jaas.conf

But when I tried to authenticate SQL Server through key tab file, I get an error:

Unable to obtain Principal Name for authentication

I'm unable to find exact root cause, any help will be appreciated.

Even I tried to debug with issue with -Dsun.security.krb5.debug=true, but not much information available

0

There are 0 answers