Add the includedir to krb5.conf on upgrades
https://fedorahosted.org/freeipa/ticket/3132
This commit is contained in:
1 parent
b64dc9362d
commit
a35d4dcbfd
1 file changed
+16
@@ -223,6 +223,7 @@ Requires: libsss_autofs
|
||||
Requires: autofs
|
||||
Requires: libnfsidmap
|
||||
Requires: nfs-utils
|
||||
Requires(post): policycoreutils
|
||||
|
||||
Obsoletes: ipa-client >= 1.0
|
||||
|
||||
@@ -526,6 +527,21 @@ if [ $1 -eq 0 ]; then
|
||||
fi
|
||||
%endif # ! %{ONLY_CLIENT}
|
||||
|
||||
%post client
|
||||
if [ $1 -gt 1 ] ; then
|
||||
# Has the client been configured?
|
||||
restore=0
|
||||
test -f '/var/lib/ipa-client/sysrestore/sysrestore.index' && restore=$(wc -l '/var/lib/ipa-client/sysrestore/sysrestore.index' | awk '{print $1}')
|
||||
|
||||
if [ -f '/etc/sssd/sssd.conf' -a $restore -ge 2 ]; then
|
||||
if ! egrep -q '/var/lib/sss/pubconf/krb5.include.d/' /etc/krb5.conf 2>/dev/null ; then
|
||||
echo "includedir /var/lib/sss/pubconf/krb5.include.d/" > /etc/krb5.conf.ipanew
|
||||
cat /etc/krb5.conf >> /etc/krb5.conf.ipanew
|
||||
mv /etc/krb5.conf.ipanew /etc/krb5.conf
|
||||
/sbin/restorecon /etc/krb5.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
%if ! %{ONLY_CLIENT}
|
||||
%files server -f server-python.list
|
||||
|
||||
Reference in new issue
Block a user