483b06
From d06b29772609d14dccfe0d556fdb83140fcb2b3f Mon Sep 17 00:00:00 2001
483b06
From: Pavel Vomacka <pvomacka@redhat.com>
483b06
Date: Mon, 28 Aug 2017 10:51:53 +0200
483b06
Subject: [PATCH] Adds whoami DS plugin in case that plugin is missing
483b06
483b06
When first installation of IPA has been done when whoami
483b06
plugin was not enabled in DS by default and then IPA was
483b06
upgraded to newer versions, then after upgrade to IPA 4.5
483b06
WebUI stops working. This is caused by new requirement on
483b06
whoami DS plugin which is used to obtain information about
483b06
logged in entity.
483b06
483b06
This fix adds the whoami plugin during update in case that the plugin
483b06
is not enabled.
483b06
483b06
https://pagure.io/freeipa/issue/7126
483b06
483b06
Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
483b06
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
483b06
---
483b06
 install/updates/20-whoami.update | 14 ++++++++++++++
483b06
 install/updates/Makefile.am      |  1 +
483b06
 2 files changed, 15 insertions(+)
483b06
 create mode 100644 install/updates/20-whoami.update
483b06
483b06
diff --git a/install/updates/20-whoami.update b/install/updates/20-whoami.update
483b06
new file mode 100644
483b06
index 0000000000000000000000000000000000000000..ed2c6cbd772ec1c2b664e450463bb64d61b1ceab
483b06
--- /dev/null
483b06
+++ b/install/updates/20-whoami.update
483b06
@@ -0,0 +1,14 @@
483b06
+dn: cn=whoami,cn=plugins,cn=config
483b06
+default:objectClass: top
483b06
+default:objectClass: nsSlapdPlugin
483b06
+default:objectClass: extensibleObject
483b06
+default:cn: whoami
483b06
+default:nsslapd-plugin-depends-on-type: database
483b06
+default:nsslapd-pluginDescription: whoami extended operation plugin
483b06
+default:nsslapd-pluginEnabled: on
483b06
+default:nsslapd-pluginId: whoami-plugin
483b06
+default:nsslapd-pluginInitfunc: whoami_init
483b06
+default:nsslapd-pluginPath: libwhoami-plugin
483b06
+default:nsslapd-pluginType: extendedop
483b06
+default:nsslapd-pluginVendor: 389 Project
483b06
+default:nsslapd-pluginVersion: 1.0
483b06
diff --git a/install/updates/Makefile.am b/install/updates/Makefile.am
483b06
index e18d01127b592a6c7941729d6160d10fb2d3e76c..ae3d3e0528929a30922f0395d7092654dd753a64 100644
483b06
--- a/install/updates/Makefile.am
483b06
+++ b/install/updates/Makefile.am
483b06
@@ -24,6 +24,7 @@ app_DATA =				\
483b06
 	20-idoverride_index.update	\
483b06
 	20-uuid.update  \
483b06
 	20-default_password_policy.update \
483b06
+	20-whoami.update	\
483b06
 	21-replicas_container.update	\
483b06
 	21-ca_renewal_container.update	\
483b06
 	21-certstore_container.update	\
483b06
--
483b06
2.13.5