[22569] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Prioritizing KDC's

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Fri Sep 24 20:12:53 2004

In-Reply-To: <4154B1AF.B04615DF@ucsc.edu>
Mime-Version: 1.0 (Apple Message framework v619)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <6D3FB0CD-0E87-11D9-BD88-000A95909EE2@mit.edu>
Content-Transfer-Encoding: 7bit
From: Ken Raeburn <raeburn@mit.edu>
Date: Fri, 24 Sep 2004 20:11:20 -0400
To: John Rudd <jrudd@ucsc.edu>
cc: "'kerberos@mit.edu'" <kerberos@mit.edu>
Errors-To: kerberos-bounces@mit.edu

On Sep 24, 2004, at 19:45, John Rudd wrote:
> I have a question about the ordering of KDC's in the krb5.conf file.  
> Do
> clients use the order listed in the file as "the order to try for
> queries" (sort of like the way resolv.conf works), or is the order
> determined in another fashion?

Hi, John.  Yes, if the KDCs are listed in the config file, that's the 
order we contact them in.

Actually, it's a round-robin process, we go through each in order, and 
then we go through the list a couple more times, and wait a while after 
each server and after each pass, and we stop when we get a response 
from any server we've tried to reach, or we time out.  So server #2 
will be contacted after only a second or two (I forget exactly) after 
we fail to get an answer from server #1.

If you use DNS SRV records, the priority indicated there dictates the 
order.  Of servers listed with equal priority, we pick randomly.  We 
understand the desire to optimize that case, we just don't have code, 
or even a good heuristic, yet.

> My specific reason for asking is that we're considering setting up a
> secondary KDC or two that will be dedicated to a specific application
> group.  We want machines within that group to query those KDC's first,
> and only reach out to the the main KDC's when the local KDC's are down.
> I've never toyed with this type of arrangement, so I'm curious about
> what the right way to tackle it might be.

Locally modified config files should certainly do the trick.  Or, if 
you're doing any interesting hacks in a DNS server for them 
specifically, you could feed them a different set of SRV records.

Ken

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post