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