]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add a master flag to struct server_entry
authorMatt Rogers <mrogers@redhat.com>
Wed, 13 Jul 2016 20:27:57 +0000 (16:27 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 19 Sep 2016 15:10:27 +0000 (11:10 -0400)
commit0df76499101d10f71e975e30ba899e63b158792c
tree8947f1fa2dc57e890cc0c4e24db0781d39c39398
parent325c7369f8cb1fde2e1c51ae8a105704a383367e
Add a master flag to struct server_entry

URI lookups will contain a flag to indicate if the KDC is a master or
normal KDC, so add a master variable to server_entry.  The default
value is -1 and means that the status has not been determined by the
information source.  If the flag is set, use it to avoid a seperate
lookup in k5_kdc_is_master().

Also add a "master" argument to add_host_to_list().  Adjust the
existing calls of add_host_to_list() for the new argument (set to -1
as they are from non-URI lookups).

ticket: 8496
src/lib/krb5/os/locate_kdc.c
src/lib/krb5/os/os-proto.h