From ccd78d8ee908015ca558e7428c27151cb1af5579 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Wed, 2 Aug 2017 17:02:46 +0000 Subject: Disable dns_canonicalize_hostname. This may break some setups. --- krb5.conf | 1 + krb5.spec | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/krb5.conf b/krb5.conf index cf23f53..a588211 100644 --- a/krb5.conf +++ b/krb5.conf @@ -8,6 +8,7 @@ includedir /etc/krb5.conf.d/ admin_server = FILE:/var/log/kadmind.log [libdefaults] + dns_canonicalize_hostname = false dns_lookup_realm = false ticket_lifetime = 24h renew_lifetime = 7d diff --git a/krb5.spec b/krb5.spec index 1db9bdb..122aacf 100644 --- a/krb5.spec +++ b/krb5.spec @@ -18,7 +18,7 @@ Summary: The Kerberos network authentication system Name: krb5 Version: 1.15.1 # for prerelease, should be e.g., 0.3.beta2%{?dist} -Release: 19%{?dist} +Release: 20%{?dist} # - Maybe we should explode from the now-available-to-everybody tarball instead? # http://web.mit.edu/kerberos/dist/krb5/1.13/krb5-1.13.2-signed.tar # - The sources below are stored in a lookaside cache. Upload with @@ -520,13 +520,12 @@ rm -- "$RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/preauth/test.so" %post libs -p /sbin/ldconfig -%triggerun libs -- krb5-libs < 1.15.1-5 -# Previously, there was logic to make this conditional in order to -# (effectively) allow for multiple triggers. However, RPM doesn't keep the -# database consistent during upgrades. -# -# When a second trigger is needed, this will be made unconditional. +%triggerun libs -- krb5-libs < 1.15.1-20 +if ! grep -q 'dns_canonicalize_hostname' /etc/krb5.conf ; then + sed -i 's/\[libdefaults\]/\[libdefaults\]\n dns_canonicalize_hostname = false/' /etc/krb5.conf +fi +# Correct trigger would be krb5-libs < 1.15.1-5 if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then sed -i '1i # To opt out of the system crypto-policies configuration of krb5, remove the\n# symlink at /etc/krb5.conf.d/crypto-policies which will not be recreated.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf fi @@ -737,6 +736,9 @@ exit 0 %{_libdir}/libkadm5srv_mit.so.* %changelog +* Wed Aug 02 2017 Robbie Harwood - 1.15.1-20 +- Disable dns_canonicalize_hostname. This may break some setups. + * Wed Aug 02 2017 Robbie Harwood - 1.15.1-19 - Re-enable test suite on ppc64le (no other changes) -- cgit