From c837b107f7f6abbd113a199072c1a83b8dac22c9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 18 May 2021 02:44:18 -0400 Subject: [PATCH] import ipa-4.9.2-3.module+el8.4.0+10412+5ecb5b37 --- .gitignore | 2 +- .ipa.metadata | 2 +- ...irmentError-while-addin_rhbz#1757045.patch | 409 --- ...do_and_sudo_pagure#8530_rhbz#1932289.patch | 381 +++ ...s-default-configuration_rhbz#1847999.patch | 601 ---- ...in-uninstall-log-for-KR_rhbz#1932289.patch | 60 + ...-Use-256-bit-AJP-secret_rhbz#1849914.patch | 147 - ...ust-with-shared-secret-_rhbz#1932289.patch | 119 + ...ectorydrive-option-name_rhbz#1851411.patch | 167 - ...pa-cert-fix_pagure#8600_rhbz#1932289.patch | 347 +++ ...ith-NTLM-authentication_rhbz#1932289.patch | 135 + ...fetching-trust-topology_rhbz#1845596.patch | 93 - ...ance-for-1-host-service_rhbz#1846352.patch | 180 -- ...ore_zonemgr_pagure#8718_rhbz#1932289.patch | 79 + ...n-calling-PKIConnection_rhbz#1849155.patch | 118 - ...-fix_renews_pagure#7885_rhbz#1932289.patch | 318 ++ ...e-for-ipa-custodia.sock_rhbz#1857157.patch | 34 - ...calling-journalctl-sinc_rhbz#1932289.patch | 37 + ...uthselect-backup-during_rhbz#1810179.patch | 189 -- ...nctions-with-NULL-LDAP_rhbz#1932784.patch} | 573 ++-- ...ror-with-CertificateErr_rhbz#1858318.patch | 32 - ...arning-if-sudo-is-not-p_rhbz#1939371.patch | 64 + ...st-install---add-agents_rhbz#1859213.patch | 103 - ...-perms-on-KDC-cert-file_rhbz#1863616.patch | 84 - ...eve-LDAP-attributes-fro_rhbz#1866938.patch | 145 - ...nhance-input-validation_rhbz#1866291.patch | 404 --- ...nnection-error-handling_rhbz#1863079.patch | 141 - ...-0644-in-CA-less-instal_rhbz#1870202.patch | 110 - ...custodia-replicate-keys_rhbz#1868432.patch | 62 - ...y-add-debug-to-pkispawn_rhbz#1879604.patch | 117 - ...TestSubCAkeyReplication_rhbz#1870202.patch | 549 ---- ...node_t-and-pki_tomcat_c_rhbz#1870202.patch | 68 - ...k-tuning-of-BDB-backend_rhbz#1882472.patch | 215 -- ...case-of-trusted-domains_rhbz#1914821.patch | 236 -- ...-remove-unused-variable_rhbz#1914821.patch | 27 - ...mpty-plugin-directories_rhbz#1895910.patch | 121 - ...ubordinate-upn-suffixes_rhbz#1914823.patch | 76 - ...e-superior-UPN-suffixes_rhbz#1914823.patch | 114 - ...f-the-forest-trust-root_rhbz#1914823.patch | 57 - ...-fix-crash-in-MS-PAC-cache-init-code.patch | 127 - ...nding-to-IPA-and-Identity-Management.patch | 2713 +---------------- SOURCES/1002-4.8.0-Remove-csrgen.patch | 2051 ------------- ...-python3-rjsmin-to-minify-JavaScript.patch | 134 - SOURCES/freeipa-4.8.7.tar.gz.asc | 16 - SOURCES/freeipa-4.9.2.tar.gz.asc | 16 + SPECS/ipa.spec | 614 ++-- 46 files changed, 2246 insertions(+), 10141 deletions(-) delete mode 100644 SOURCES/0001-WebUI-Fix-IPA-Error-3007-RequirmentError-while-addin_rhbz#1757045.patch create mode 100644 SOURCES/0001-ipatests_libsss_sudo_and_sudo_pagure#8530_rhbz#1932289.patch delete mode 100644 SOURCES/0002-EPN-does-not-ship-its-default-configuration_rhbz#1847999.patch create mode 100644 SOURCES/0002-ipatests-error-message-check-in-uninstall-log-for-KR_rhbz#1932289.patch delete mode 100644 SOURCES/0003-Use-256-bit-AJP-secret_rhbz#1849914.patch create mode 100644 SOURCES/0003-ipatests-skip-tests-for-AD-trust-with-shared-secret-_rhbz#1932289.patch delete mode 100644 SOURCES/0004-baseuser-fix-ipanthomedirectorydrive-option-name_rhbz#1851411.patch create mode 100644 SOURCES/0004-ipatests-ipa-cert-fix_pagure#8600_rhbz#1932289.patch create mode 100644 SOURCES/0005-ipatests-test-Samba-mount-with-NTLM-authentication_rhbz#1932289.patch delete mode 100644 SOURCES/0005-selinux-don-t-audit-rules-deny-fetching-trust-topology_rhbz#1845596.patch delete mode 100644 SOURCES/0006-fix-iPAddress-cert-issuance-for-1-host-service_rhbz#1846352.patch create mode 100644 SOURCES/0006-ipatests_do_not_ignore_zonemgr_pagure#8718_rhbz#1932289.patch delete mode 100644 SOURCES/0007-Specify-cert_paths-when-calling-PKIConnection_rhbz#1849155.patch create mode 100644 SOURCES/0007-ipatests_ipa-cert-fix_renews_pagure#7885_rhbz#1932289.patch delete mode 100644 SOURCES/0008-Add-missing-SELinux-rule-for-ipa-custodia.sock_rhbz#1857157.patch create mode 100644 SOURCES/0008-ipatests-use-whole-date-when-calling-journalctl-sinc_rhbz#1932289.patch delete mode 100644 SOURCES/0009-ipa-client-install-use-the-authselect-backup-during_rhbz#1810179.patch rename SOURCES/{0029-ipa-kdb-do-not-use-OpenLDAP-functions-with-NULL-LDAP_rhbz#1935146.patch => 0009-ipa-kdb-do-not-use-OpenLDAP-functions-with-NULL-LDAP_rhbz#1932784.patch} (79%) delete mode 100644 SOURCES/0010-Replace-SSLCertVerificationError-with-CertificateErr_rhbz#1858318.patch create mode 100644 SOURCES/0010-ipa-client-install-output-a-warning-if-sudo-is-not-p_rhbz#1939371.patch delete mode 100644 SOURCES/0011-Fix-AVC-denial-during-ipa-adtrust-install---add-agents_rhbz#1859213.patch delete mode 100644 SOURCES/0012-CAless-installation-set-the-perms-on-KDC-cert-file_rhbz#1863616.patch delete mode 100644 SOURCES/0013-IPA-EPN-Use-a-helper-to-retrieve-LDAP-attributes-fro_rhbz#1866938.patch delete mode 100644 SOURCES/0014-IPA-EPN-enhance-input-validation_rhbz#1866291.patch delete mode 100644 SOURCES/0015-IPA-EPN-Fix-SMTP-connection-error-handling_rhbz#1863079.patch delete mode 100644 SOURCES/0016-Set-mode-of-etc-ipa-ca.crt-to-0644-in-CA-less-instal_rhbz#1870202.patch delete mode 100644 SOURCES/0017-SELinux-Policy-let-custodia-replicate-keys_rhbz#1868432.patch delete mode 100644 SOURCES/0018-dogtaginstance.py-add-debug-to-pkispawn_rhbz#1879604.patch delete mode 100644 SOURCES/0019-SELinux-add-dedicated-policy-for-ipa-pki-retrieve-key-ipatests-enhance-TestSubCAkeyReplication_rhbz#1870202.patch delete mode 100644 SOURCES/0020-SELinux-do-not-double-define-node_t-and-pki_tomcat_c_rhbz#1870202.patch delete mode 100644 SOURCES/0021-Fix-nsslapd-db-lock-tuning-of-BDB-backend_rhbz#1882472.patch delete mode 100644 SOURCES/0022-rpcserver-fallback-to-non-armored-kinit-in-case-of-trusted-domains_rhbz#1914821.patch delete mode 100644 SOURCES/0023-pylint-remove-unused-variable_rhbz#1914821.patch delete mode 100644 SOURCES/0024-wgi-plugins.py-ignore-empty-plugin-directories_rhbz#1895910.patch delete mode 100644 SOURCES/0025-ipatests-support-subordinate-upn-suffixes_rhbz#1914823.patch delete mode 100644 SOURCES/0026-ipa-kdb-support-subordinate-superior-UPN-suffixes_rhbz#1914823.patch delete mode 100644 SOURCES/0027-ad-trust-accept-subordinate-domains-of-the-forest-trust-root_rhbz#1914823.patch delete mode 100644 SOURCES/0028-ipa-kdb-fix-crash-in-MS-PAC-cache-init-code.patch delete mode 100644 SOURCES/1002-4.8.0-Remove-csrgen.patch delete mode 100644 SOURCES/1003-Revert-WebUI-use-python3-rjsmin-to-minify-JavaScript.patch delete mode 100644 SOURCES/freeipa-4.8.7.tar.gz.asc create mode 100644 SOURCES/freeipa-4.9.2.tar.gz.asc diff --git a/.gitignore b/.gitignore index eb27ffd..01d0ddf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/freeipa-4.8.7.tar.gz +SOURCES/freeipa-4.9.2.tar.gz diff --git a/.ipa.metadata b/.ipa.metadata index f2e66c8..13b7ab7 100644 --- a/.ipa.metadata +++ b/.ipa.metadata @@ -1 +1 @@ -0099d799a77a757eeb4a95a69a38bdec24e45026 SOURCES/freeipa-4.8.7.tar.gz +c7b37727ffbdebe311990f7d31ae3b8bf2d06792 SOURCES/freeipa-4.9.2.tar.gz diff --git a/SOURCES/0001-WebUI-Fix-IPA-Error-3007-RequirmentError-while-addin_rhbz#1757045.patch b/SOURCES/0001-WebUI-Fix-IPA-Error-3007-RequirmentError-while-addin_rhbz#1757045.patch deleted file mode 100644 index 34580fe..0000000 --- a/SOURCES/0001-WebUI-Fix-IPA-Error-3007-RequirmentError-while-addin_rhbz#1757045.patch +++ /dev/null @@ -1,409 +0,0 @@ -From c2ba333b9681d008d9c528a79dbdd76ce11a3ecd Mon Sep 17 00:00:00 2001 -From: Serhii Tsymbaliuk -Date: Thu, 28 May 2020 08:47:49 +0200 -Subject: [PATCH 01/22] WebUI: Fix "IPA Error 3007: RequirmentError" while - adding idoverrideuser association - -Add builder for association adder dialog which allows to override behavior of the component. -Replace default implementation with a custom one for idoverrideuser. -Replace text filter with 'ID view' select box in the idoverrideuser dialog. - -Ticket: https://pagure.io/freeipa/issue/8335 - -Signed-off-by: Serhii Tsymbaliuk -Reviewed-By: Alexander Bokovoy ---- - install/ui/src/freeipa/association.js | 13 ++++- - install/ui/src/freeipa/dialog.js | 73 ++++++++++++++++----------- - install/ui/src/freeipa/group.js | 14 +++++ - install/ui/src/freeipa/idviews.js | 58 +++++++++++++++++++++ - ipaserver/plugins/internal.py | 6 +++ - 5 files changed, 133 insertions(+), 31 deletions(-) - -diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js -index f10ccb2a5..b083a79f9 100644 ---- a/install/ui/src/freeipa/association.js -+++ b/install/ui/src/freeipa/association.js -@@ -25,6 +25,7 @@ - define([ - 'dojo/_base/lang', - 'dojo/Deferred', -+ './builder', - './metadata', - './ipa', - './jquery', -@@ -38,7 +39,7 @@ define([ - './facet', - './search', - './dialog'], -- function(lang, Deferred, metadata_provider, IPA, $, metadata, -+ function(lang, Deferred, builder, metadata_provider, IPA, $, metadata, - navigation, phases, reg, rpc, su, text) { - - /** -@@ -1209,7 +1210,8 @@ exp.association_facet = IPA.association_facet = function (spec, no_init) { - - var pkeys = that.data.result.result[that.get_attribute_name()]; - -- var dialog = IPA.association_adder_dialog({ -+ var dialog = builder.build('association_adder_dialog', { -+ $type: that.other_entity.name, - title: title, - entity: that.entity, - pkey: pkey, -@@ -1675,6 +1677,13 @@ IPA.attr_read_only_evaluator = function(spec) { - return that; - }; - -+// Create a registry for adder dialogs where key is name of 'other entity'. -+// It allows to override dialogs for some specific cases of association -+// creation. -+var dialog_builder = builder.get('association_adder_dialog'); -+dialog_builder.factory = IPA.association_adder_dialog; -+reg.set('association_adder_dialog', dialog_builder.registry); -+ - phases.on('registration', function() { - var w = reg.widget; - var f = reg.field; -diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js -index c153120df..d67d63b6d 100644 ---- a/install/ui/src/freeipa/dialog.js -+++ b/install/ui/src/freeipa/dialog.js -@@ -919,35 +919,7 @@ IPA.adder_dialog = function(spec) { - 'class': 'input-group col-md-12 adder-dialog-top' - }).appendTo(container); - -- var filter_placeholder = text.get('@i18n:association.filter_placeholder'); -- filter_placeholder = filter_placeholder.replace('${other_entity}', -- that.other_entity.metadata.label); -- -- that.filter_field = $('', { -- type: 'text', -- name: 'filter', -- 'class': 'form-control', -- 'placeholder': filter_placeholder, -- keyup: function(event) { -- if (event.keyCode === keys.ENTER) { -- that.search(); -- return false; -- } -- } -- }).appendTo(input_group); -- -- var input_group_btn = $('
', { -- 'class': 'input-group-btn' -- }).appendTo(input_group); -- -- that.find_button = IPA.button({ -- name: 'find', -- label: '@i18n:buttons.filter', -- click: function() { -- that.search(); -- return false; -- } -- }).appendTo(input_group_btn); -+ that.filter_field = that.get_filter_field(input_group); - - var row = $('
', { 'class': 'row adder-dialog-main'}).appendTo(container); - // -@@ -1132,6 +1104,49 @@ IPA.adder_dialog = function(spec) { - return that.filter_field.val(); - }; - -+ /** -+ * Return field for filtering available items -+ * -+ * Default implementation returns text input + "Filter" button. -+ * It can be overridden. -+ * -+ * @param {HTMLElement} input_group - container for a filter field -+ * @return {HTMLElement} -+ */ -+ that.get_filter_field = function(input_group) { -+ var filter_placeholder = text.get( -+ '@i18n:association.filter_placeholder' -+ ).replace('${other_entity}', that.other_entity.metadata.label); -+ -+ var filter_field = $('', { -+ type: 'text', -+ name: 'filter', -+ 'class': 'form-control', -+ 'placeholder': filter_placeholder, -+ keyup: function(event) { -+ if (event.keyCode === keys.ENTER) { -+ that.search(); -+ return false; -+ } -+ } -+ }).appendTo(input_group); -+ -+ var input_group_btn = $('
', { -+ 'class': 'input-group-btn' -+ }).appendTo(input_group); -+ -+ that.find_button = IPA.button({ -+ name: 'find', -+ label: '@i18n:buttons.filter', -+ click: function() { -+ that.search(); -+ return false; -+ } -+ }).appendTo(input_group_btn); -+ -+ return filter_field; -+ }; -+ - /** - * Clear rows in available table - */ -diff --git a/install/ui/src/freeipa/group.js b/install/ui/src/freeipa/group.js -index e46d8c7e3..2984bd4b2 100644 ---- a/install/ui/src/freeipa/group.js -+++ b/install/ui/src/freeipa/group.js -@@ -205,6 +205,20 @@ return { - add_title: '@i18n:objects.group.add_into_sudo', - remove_method: 'remove_user', - remove_title: '@i18n:objects.group.remove_from_sudo' -+ }, -+ { -+ $type: 'association', -+ name: 'member_idoverrideuser', -+ associator: IPA.serial_associator, -+ add_title: '@i18n:objects.group.add_idoverride_user', -+ remove_title: '@i18n:objects.group.remove_idoverride_users', -+ columns: [ -+ { -+ name: 'ipaanchoruuid', -+ label: '@i18n:objects.idoverrideuser.anchor_label', -+ link: false -+ } -+ ] - } - ], - standard_association_facets: true, -diff --git a/install/ui/src/freeipa/idviews.js b/install/ui/src/freeipa/idviews.js -index 35dc998c8..a4fca6205 100644 ---- a/install/ui/src/freeipa/idviews.js -+++ b/install/ui/src/freeipa/idviews.js -@@ -966,6 +966,58 @@ idviews.unapply_action = function(spec) { - return that; - }; - -+idviews.idoverrideuser_adder_dialog = function(spec) { -+ -+ spec = spec || {}; -+ -+ var that = IPA.association_adder_dialog(spec); -+ -+ that.base_search = that.search; -+ -+ that.search = function() { -+ // Search for users only in case a ID view is selected -+ if (that.get_filter()) { -+ that.base_search(); -+ } -+ }; -+ -+ /** -+ * Replace default text filter with a select box for filtering by ID view -+ */ -+ that.get_filter_field = function(input_group) { -+ -+ var filter_field = $('