LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2010, 09:41 AM   #1
MheAd
Member
 
Registered: Jun 2007
Distribution: Ubuntu 14.04
Posts: 186

Rep: Reputation: 36
Kerberos (MIT] client gets double service tickets when using DNS for Realm lookup


Hi guys,
I've noticed a strange side effect when using minimalistic krb5.conf file, making the Kerberos client use DNS for KDC / Realm lookups. All services work fine, I just can't figure out why this happens.

First off, here's how I configured my client machines krb5.conf

Code:
[libdefaults]
forwardable = true
dns_lookup_realm = true
dns_lookup_kdc = true
My DNS is configured as following (the domain / realm are my-domain.xx / MY-DOMAIN.XX) :

Code:
$ORIGIN my-domain.xx.

_kerberos._udp                  IN SRV 1 0 88   centos-server1
_kerberos._tcp                  IN SRV 1 0 88   centos-server1
_kerberos-adm_tcp               IN SRV 1 0 749  centos-server1
_kpasswd._udp                   IN SRV 1 0 464  centos-server1
_kerberos.my-domain.xx.         IN TXT "MY-DOMAIN.XX"
With stuff configured this way, I'm able to authenticate myself against KDC, get TGT, contact kerberized services / hosts with no problems whatsoever. However, I've noticed that I'm getting double instances of service / host tickets for every single service I connect to, one with Realm-info included, the other one without. As you can see on the example, I've got two tickets for the same principal, only slightly different:

Quote:
klist
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: mhead@MY-DOMAIN.XX

Valid starting Expires Service principal
06/30/10 16:14:33 07/01/10 02:14:33 krbtgt/MY-DOMAIN.XX@MY-DOMAIN.XX
renew until 07/01/10 16:14:46
06/30/10 16:14:44 07/01/10 02:14:33 host/debian-server.my-domain.xx@
renew until 07/01/10 16:14:46
06/30/10 16:14:44 07/01/10 02:14:33 host/debian-server.my-domain.xx@MY-DOMAIN.XX
renew until 07/01/10 16:14:46
Why this happens I have no clue. Everything works though how it should. Later on, after investigating, I've noticed that, if I add following rows in the krb5.conf of the clients:
Code:
[domain_realm]
my-domain.xx = MY-DOMAIN.XX
.my-domain.xx = MY-DOMAIN.XX
Then I get the normal single-tickets.
However, this makes me thinking - isn't one of the purposes of the IN TXT DNS-record that I have exactly to do these mappings, so I don't have to add these [domain_realm] stanzas manually?

Any ideas?
Thanks in advance!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Kerberos (MIT) clients cannot find administrative server through DNS. MheAd Linux - Software 2 07-01-2015 04:57 AM
Automatic Renewal of Kerberos Tickets 0ddba11 Linux - Software 4 09-02-2010 02:15 PM
Cant get kerberos tickets-nothing happens? project722 Linux - Networking 5 06-08-2009 05:13 AM
Linux Daemons and Kerberos Tickets neel_learning_linux Linux - Newbie 1 04-07-2009 07:40 PM
Specify Kerberos Realm on Log In imadoofus Linux - Server 0 03-06-2009 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration