freeipa/ipaserver/install/plugins
Florence Blanc-Renaud 69bda6b440 Fix ipa-server-upgrade: This entry already exists
ipa-server-upgrade fails when running the ipaload_cacrt plugin. The plugin
finds all CA certificates in /etc/httpd/alias and uploads them in LDAP
below cn=certificates,cn=ipa,cn=etc,$BASEDN.
The issue happens because there is already an entry in LDAP for IPA CA, but
with a different DN. The nickname in /etc/httpd/alias can differ from
$DOMAIN IPA CA.

To avoid the issue:
1/ during upgrade, run a new plugin that removes duplicates and restarts ldap
(to make sure that uniqueness attr plugin is working after the new plugin)
2/ modify upload_cacert plugin so that it is using $DOMAIN IPA CA instead of
cn=$nickname,cn=ipa,cn=etc,$BASEDN when uploading IPA CA.

https://pagure.io/freeipa/issue/7125

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
2017-08-30 12:47:53 +02:00
..
__init__.py Server Upgrade: specify order of plugins in update files 2015-04-14 19:25:47 +02:00
adtrust.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
ca_renewal_master.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
dns.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
fix_replica_agreements.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
rename_managed.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_ca_topology.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_dna_shared_config.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_fix_duplicate_cacrt_in_ldap.py Fix ipa-server-upgrade: This entry already exists 2017-08-30 12:47:53 +02:00
update_idranges.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
update_ldap_server_list.py Move ds.replica_populate to an update plugin 2016-11-11 12:13:56 +01:00
update_managed_permissions.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_nis.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_pacs.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_passsync.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
update_ra_cert_store.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
update_referint.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
update_services.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
update_uniqueness.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
upload_cacrt.py Fix ipa-server-upgrade: This entry already exists 2017-08-30 12:47:53 +02:00