My situation is as follows:

We have a large number of Linux users and thus our accounts are on a MIT Kerberos Server. We have a few Windows users whose accounts are in Windows AD. And we have a growing number of users who sometimes use both systems.

We want the Linux users to be able to log in to the Windows machines. As the number of Linux users is very large, migrating the accounts to AD is not an option.

So I went ahead, created a test user/principal which exists on both sides. I also created a (two-way) trust between AD and MIT Realm, tested it successfully from the Linux side. I Then I used ksetup to set up the Windows machines to recognize the foreign realm

default realm = ad.domain (NT Domain)
    kdc = kdc.linux.realm
    kpasswd = kdc.linux.realm
    Realm Flags = 0x0No Realm Flags
Mapping all users (*) to a local account by the same name (*).

Check returns

List of domain trusts:
0: LINUX.REALM (MIT) (Direct Outbound) (Direct Inbound) ( Attr: non-trans )
1: AD ad.domain (NT 5) (Forest Tree Root) (Primary Domain) (Native)
The command completed successfully

But I can not log in as test@LINUX.REALM into the linux clients nor get tickets from the windows side. Linux Kerberos logs show no TGT Request.

I have also set the altSecurityIdentities for user ad\test as kerberos: test@LINUX.REALM

What am I missing?



ksetup /addhosttorealmmap .dns.domain LINUX.REALM

fixed this.

  • It should be noted that you can also set these host to realm maps via group policy in AD. – Ryan Bolger Sep 6 '17 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.