Blame SOURCES/0006-install-updates-move-external-members-past-schema-compat-update_14dbf04_rhbz#1803165.patch

177dc6
From 14dbf04148c6284b176eca34aa70df4bef09b857 Mon Sep 17 00:00:00 2001
177dc6
From: Alexander Bokovoy <abokovoy@redhat.com>
177dc6
Date: Feb 12 2020 14:16:42 +0000
177dc6
Subject: install/updates: move external members past schema compat update
177dc6
177dc6
177dc6
There is an ordering discrepancy because the base compat tree
177dc6
configuration is in install/updates/80-schema_compat.update so it is ran
177dc6
after 50-externalmembers.update. And since at that point
177dc6
cn=groups,cn=Schema ... does not exist yet, external members
177dc6
configuration is not applied.
177dc6
177dc6
Move it around to make sure it is applied after Schema Compatibility
177dc6
plugin configuration is created.
177dc6
177dc6
Fixes: https://pagure.io/freeipa/issue/8193
177dc6
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
177dc6
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
177dc6
177dc6
---
177dc6
177dc6
diff --git a/install/updates/50-externalmembers.update b/install/updates/50-externalmembers.update
177dc6
deleted file mode 100644
177dc6
index 6b9c5dd..0000000
177dc6
--- a/install/updates/50-externalmembers.update
177dc6
+++ /dev/null
177dc6
@@ -1,3 +0,0 @@
177dc6
-dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
177dc6
-addifexist: schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexternalmember")
177dc6
-addifexist: schema-compat-entry-attribute: objectclass=ipaexternalgroup
177dc6
diff --git a/install/updates/81-externalmembers.update b/install/updates/81-externalmembers.update
177dc6
new file mode 100644
177dc6
index 0000000..6b9c5dd
177dc6
--- /dev/null
177dc6
+++ b/install/updates/81-externalmembers.update
177dc6
@@ -0,0 +1,3 @@
177dc6
+dn: cn=groups,cn=Schema Compatibility,cn=plugins,cn=config
177dc6
+addifexist: schema-compat-entry-attribute: ipaexternalmember=%deref_r("member","ipaexternalmember")
177dc6
+addifexist: schema-compat-entry-attribute: objectclass=ipaexternalgroup
177dc6
diff --git a/install/updates/Makefile.am b/install/updates/Makefile.am
177dc6
index 68facba..8a4d9cc 100644
177dc6
--- a/install/updates/Makefile.am
177dc6
+++ b/install/updates/Makefile.am
177dc6
@@ -52,7 +52,6 @@ app_DATA =				\
177dc6
 	50-krbenctypes.update		\
177dc6
 	50-nis.update			\
177dc6
 	50-ipaconfig.update		\
177dc6
-	50-externalmembers.update	\
177dc6
 	55-pbacmemberof.update		\
177dc6
 	59-trusts-sysacount.update	\
177dc6
 	60-trusts.update		\
177dc6
@@ -65,7 +64,8 @@ app_DATA =				\
177dc6
 	73-winsync.update		\
177dc6
 	73-certmap.update		\
177dc6
 	75-user-trust-attributes.update	\
177dc6
-	80-schema_compat.update \
177dc6
+	80-schema_compat.update 	\
177dc6
+	81-externalmembers.update	\
177dc6
 	90-post_upgrade_plugins.update	\
177dc6
 	$(NULL)
177dc6
 
177dc6