URL: https://github.com/SSSD/sssd/pull/5894 Author: ikerexxe Title: #5894: contrib: sssd krb5 configuration snippet Action: opened
PR body: """ Add a configuration snippet for krb5 that points to the folder where the sssd configuration for this service is located. Resolves: https://github.com/SSSD/sssd/issues/5893 """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5894/head:pr5894 git checkout pr5894
From 913e87df4577bd9afca9ffc84871a445f629e766 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa <ipedr...@redhat.com> Date: Mon, 29 Nov 2021 16:16:36 +0100 Subject: [PATCH] contrib: sssd krb5 configuration snippet Add a configuration snippet for krb5 that points to the folder where the sssd configuration for this service is located. Resolves: https://github.com/SSSD/sssd/issues/5893 Signed-off-by: Iker Pedrosa <ipedr...@redhat.com> --- Makefile.am | 3 +++ contrib/sssd.spec.in | 7 +++++++ contrib/sssd_krb5_snippet | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 contrib/sssd_krb5_snippet diff --git a/Makefile.am b/Makefile.am index f6bc9414d0..5298f39687 100644 --- a/Makefile.am +++ b/Makefile.am @@ -57,6 +57,7 @@ sssdconfdir = $(sysconfdir)/sssd sssddatadir = $(datadir)/sssd sssdapiplugindir = $(sssddatadir)/sssd.api.d sssdtapscriptdir = $(sssddatadir)/systemtap +krb5snippetsdir = $(sssddatadir)/krb5-snippets dbuspolicydir = $(sysconfdir)/dbus-1/system.d dbusservicedir = $(datadir)/dbus-1/system-services sss_statedir = $(localstatedir)/lib/sss @@ -4694,6 +4695,8 @@ sssd_krb5_localauth_plugin_la_LDFLAGS = \ -module endif +dist_krb5snippets_DATA = contrib/sssd_krb5_snippet + sssd_pac_plugin_la_SOURCES = \ src/sss_client/sssd_pac.c \ src/sss_client/common.c \ diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 7f75b1b5a3..c3ac2b00f9 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -566,6 +566,10 @@ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/krb5.conf.d cp $RPM_BUILD_ROOT/%{_datadir}/sssd-kcm/kcm_default_ccache \ $RPM_BUILD_ROOT/%{_sysconfdir}/krb5.conf.d/kcm_default_ccache +# krb5 configuration snippet +cp $RPM_BUILD_ROOT/%{_datadir}/sssd/krb5-snippets/sssd_krb5_snippet \ + $RPM_BUILD_ROOT/%{_sysconfdir}/krb5.conf.d/sssd_krb5_snippet + # Create directory for cifs-idmap alternative # Otherwise this directory could not be owned by sssd-client mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/cifs-utils @@ -792,6 +796,9 @@ done %license COPYING %{_libdir}/%{name}/libsss_krb5.so %{_mandir}/man5/sssd-krb5.5* +%config(noreplace) %{_sysconfdir}/krb5.conf.d/sssd_krb5_snippet +%dir %{_datadir}/sssd/krb5-snippets +%{_datadir}/sssd/krb5-snippets/sssd_krb5_snippet %files common-pac %license COPYING diff --git a/contrib/sssd_krb5_snippet b/contrib/sssd_krb5_snippet new file mode 100644 index 0000000000..4da4736e90 --- /dev/null +++ b/contrib/sssd_krb5_snippet @@ -0,0 +1,5 @@ +# This file should normally be installed by your distribution into a +# directory that is included from the Kerberos configuration file (/etc/krb5.conf) +# On Fedora/RHEL/CentOS, this is /etc/krb5.conf.d/ + +includedir /var/lib/sss/pubconf/krb5.include.d/ \ No newline at end of file
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure