Forum Stats

  • 3,824,944 Users
  • 2,260,442 Discussions


Kerberos: Cross Domain/Realm Issue

3405321 Member Posts: 2
edited Mar 6, 2017 5:33AM in Kerberos & Java GSS (JGSS)

I ran into an issue while I was helping a customer to configure SSO (with Kerberos) for our Software.

But first, let's give you some context:

As you can see in the attatched krb5.ini we want to do Cross Domain/Realm Kerberos and we have four different (Active Directory; all have 2008 R2 forest/domain function level) domains.

1) test.local 2) subdomain.test.local (which is obviously a child domain of test.local) 3) example.local 4) dummy.local

A two-way transitive trust was (manually) setup between test.local and example.local as well as between test.local and example.local.

And there is (of course) the default trust between test.local and subdomain.test.local.

[libdefaults]default_realm = TEST.LOCALdefault_tkt_enctypes = rc4-hmac aes128-cts aes256-cts des-cbc-crc des-cbc-md5 default_tgs_enctypes = rc4-hmac aes128-cts aes256-cts des-cbc-crc des-cbc-md5 permitted_enctypes = rc4-hmac aes128-cts aes256-cts des-cbc-crc des-cbc-md5 [realms] TEST.LOCAL = {  kdc = dc001.TEST.local  kdc = dc002.TEST.local}EXAMPLE.LOCAL = {  kdc = dc001.example.local  kdc = dc002.example.local}SUBDOMAIN.TEST.LOCAL = {  kdc = dc001.SUBDOMAIN.TEST.local  kdc = dc002.SUBDOMAIN.TEST.local}DUMMY.LOCAL = {  kdc = dc001.dummy.local  kdc = dc002.dummy.local}[domain_realm]test.local=TEST.LOCAL.test.local=TEST.LOCALexample.local=EXAMPLE.LOCAL.example.local=EXAMPLE.LOCALdummy.local=DUMMY.LOCAL.dummy.local=DUMMY.LOCALsubdomain.test.local=SUBDOMAIN.TEST.LOCAL.subdomain.test.local=SUBDOMAIN.TEST.LOCAL

Cross domain name resolution works just fine.

The webserver is a linux box (if I remember correctly it was a RedHat or CentOS installation). The fqdn is web001.test.local.

The clients (separately from the domain they are a member of) treat the fqdn web001.test.local as member of the local intranet zone.

We successfully created a service user and a corresponding keytab file for the webserver. If we query test.local and search for the spn we get the correct response:

<service user)>HTTP/[email protected]/web001.test.localHTTP/web001

After that we started testing and Kerberos worked just fine (if the users are members of test.local or subdomain.test.local) until we tried to login with a test user from dummy.local and example.local.

Every time a user tries to login from these particular domains we get the following stacktrace:

09:44:25.447 WARN  REQUEST[]o.s.s.k.w.a.SpnegoAuthenticationProcessingFilter - Negotiate Header wasinvalid: Negotiate validation not successfulCaused by: nullCaused by: Checksum failedCaused by: Checksum failed

As I said before: Kerberos works with clients/users within the test.local and the subdomain.test.local realm/domain.

But I don't get why it is not working with the other domains/realms.

Can someone enlighten me or at least give me a hint?

Thanks in advance.

P.S. Regarding debugging/responding: I do not have direct access to the customer domains (active directories) and the webserver. So debugging and responding to your answers may take a few days.

Best Answer


This discussion has been closed.