483b06
From cae66046bb31205283341cd3b19af799c5fe6a30 Mon Sep 17 00:00:00 2001
483b06
From: Sumit Bose <sbose@redhat.com>
483b06
Date: Wed, 29 Mar 2017 15:46:50 +0200
483b06
Subject: [PATCH] IPA-KDB: use relative path in ipa-certmap config snippet
483b06
483b06
Architecture specific paths should be avoided in the global Kerberos
483b06
configuration because it is read e.g. by 32bit and 64bit libraries they
483b06
are installed in parallel.
483b06
483b06
Resolves https://pagure.io/freeipa/issue/6833
483b06
483b06
Reviewed-By: Christian Heimes <cheimes@redhat.com>
483b06
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
483b06
---
483b06
 daemons/ipa-kdb/Makefile.am                       | 12 ++++--------
483b06
 daemons/ipa-kdb/{ipa-certauth.in => ipa-certauth} |  2 +-
483b06
 2 files changed, 5 insertions(+), 9 deletions(-)
483b06
 rename daemons/ipa-kdb/{ipa-certauth.in => ipa-certauth} (56%)
483b06
483b06
diff --git a/daemons/ipa-kdb/Makefile.am b/daemons/ipa-kdb/Makefile.am
483b06
index 715666e779a4fa64c2c0f71767f09efb19b5f908..259bc3b20fa96cadff43c3acdce1bd3ba49cdb31 100644
483b06
--- a/daemons/ipa-kdb/Makefile.am
483b06
+++ b/daemons/ipa-kdb/Makefile.am
483b06
@@ -40,18 +40,16 @@ ipadb_la_SOURCES = 		\
483b06
 	ipa_kdb_audit_as.c	\
483b06
 	$(NULL)
483b06
 
483b06
+dist_noinst_DATA = ipa_kdb.exports
483b06
+
483b06
 if BUILD_IPA_CERTAUTH_PLUGIN
483b06
 ipadb_la_SOURCES += ipa_kdb_certauth.c
483b06
 
483b06
 
483b06
-%: %.in
483b06
-	sed \
483b06
-		-e 's|@plugindir@|$(plugindir)|g' \
483b06
-		'$(srcdir)/$@.in' >$@
483b06
-
483b06
 krb5confdir = $(sysconfdir)/krb5.conf.d
483b06
 krb5conf_DATA = ipa-certauth
483b06
-CLEANFILES = $(krb5conf_DATA)
483b06
+else
483b06
+dist_noinst_DATA += ipa-certauth
483b06
 endif
483b06
 
483b06
 ipadb_la_LDFLAGS = 		\
483b06
@@ -105,8 +103,6 @@ ipa_kdb_tests_LDADD =          \
483b06
        -lsss_idmap             \
483b06
        $(NULL)
483b06
 
483b06
-dist_noinst_DATA = ipa_kdb.exports ipa-certauth.in
483b06
-
483b06
 clean-local:
483b06
 	rm -f tests/.dirstamp
483b06
 
483b06
diff --git a/daemons/ipa-kdb/ipa-certauth.in b/daemons/ipa-kdb/ipa-certauth
483b06
similarity index 56%
483b06
rename from daemons/ipa-kdb/ipa-certauth.in
483b06
rename to daemons/ipa-kdb/ipa-certauth
483b06
index eda89a26f02fbea449eb754b232b8115904acd21..6fde08284da22161a97df675d15392f80ffcc6fb 100644
483b06
--- a/daemons/ipa-kdb/ipa-certauth.in
483b06
+++ b/daemons/ipa-kdb/ipa-certauth
483b06
@@ -1,5 +1,5 @@
483b06
 [plugins]
483b06
  certauth = {
483b06
-  module = ipakdb:@plugindir@/ipadb.so
483b06
+  module = ipakdb:kdb/ipadb.so
483b06
   enable_only = ipakdb
483b06
  }
483b06
-- 
483b06
2.12.2
483b06