diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2013-07-18 17:10:01 +0300 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2013-07-23 16:24:24 +0300 |
commit | 67bcbab897d4a5d0ab001239e52b443c07ee872e (patch) | |
tree | 08713f376eb9478e0119e4572f2e97f9b41a91d9 /daemons/ipa-kdb/ipa_kdb.h | |
parent | 881290b0109aa1f52a34d31505b9ebf73b991a00 (diff) | |
download | freeipa-67bcbab897d4a5d0ab001239e52b443c07ee872e.tar.gz freeipa-67bcbab897d4a5d0ab001239e52b443c07ee872e.tar.xz freeipa-67bcbab897d4a5d0ab001239e52b443c07ee872e.zip |
ipa-kdb: cache KDC hostname on startup
We need KDC hostname for several purposes:
- short-circuit detection of principals on the same server as KDC
- generating NetBIOS name
Make sure we cache hostname information on startup and use it
instead of detecting the hostname in run-time. This will miss the
case that KDC hostname got changed but such cases are not supported
anyway without restarting KDC and making changes to principals.
Diffstat (limited to 'daemons/ipa-kdb/ipa_kdb.h')
-rw-r--r-- | daemons/ipa-kdb/ipa_kdb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h index f7797c493..a611bc288 100644 --- a/daemons/ipa-kdb/ipa_kdb.h +++ b/daemons/ipa-kdb/ipa_kdb.h @@ -92,6 +92,7 @@ struct ipadb_context { char *base; char *realm; char *realm_base; + char *kdc_hostname; LDAP *lcontext; krb5_context kcontext; bool override_restrictions; |