mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Drop duplicate includedir from krb5.conf
SSSD already provides a config snippet which includes SSSD_PUBCONF_KRB5_INCLUDE_D_DIR, and having both breaks Java. Add also a dependency on sssd-krb5 for freeipa-client. https://pagure.io/freeipa/issue/9267 Signed-off-by: Timo Aaltonen <tjaalton@debian.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Florence Blanc-Renaud
parent
191880bc9f
commit
a83ae63578
@@ -702,6 +702,7 @@ Requires: jansson
|
||||
%endif
|
||||
Requires: sssd-ipa >= %{sssd_version}
|
||||
Requires: sssd-idp >= %{sssd_version}
|
||||
Requires: sssd-krb5 >= %{sssd_version}
|
||||
Requires: certmonger >= %{certmonger_version}
|
||||
Requires: nss-tools >= %{nss_version}
|
||||
Requires: bind-utils
|
||||
@@ -1253,10 +1254,8 @@ if [ $1 -gt 1 ] ; then
|
||||
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 ! grep -E -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 -Z /etc/krb5.conf.ipanew /etc/krb5.conf
|
||||
if grep -E -q '/var/lib/sss/pubconf/krb5.include.d/' /etc/krb5.conf 2>/dev/null ; then
|
||||
sed -i '\;includedir /var/lib/sss/pubconf/krb5.include.d;d' /etc/krb5.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
$INCLUDES
|
||||
includedir /var/lib/sss/pubconf/krb5.include.d/
|
||||
|
||||
[logging]
|
||||
default = FILE:/var/log/krb5libs.log
|
||||
|
||||
@@ -699,19 +699,6 @@ def configure_krb5_conf(
|
||||
}
|
||||
])
|
||||
|
||||
# SSSD include dir
|
||||
if configure_sssd:
|
||||
if not os.path.exists(paths.SSSD_PUBCONF_KRB5_INCLUDE_D_DIR):
|
||||
os.makedirs(paths.SSSD_PUBCONF_KRB5_INCLUDE_D_DIR, mode=0o755)
|
||||
opts.extend([
|
||||
{
|
||||
'name': 'includedir',
|
||||
'type': 'option',
|
||||
'value': paths.SSSD_PUBCONF_KRB5_INCLUDE_D_DIR,
|
||||
'delim': ' '
|
||||
},
|
||||
krbconf.emptyLine()])
|
||||
|
||||
# [libdefaults]
|
||||
libopts = [
|
||||
krbconf.setOption('default_realm', cli_realm)
|
||||
|
||||
Reference in New Issue
Block a user