The function migrate_profiles_to_ldap() migrates file-based Dogtag certificate profiles to LDAP. The function was added in commit 3827137b32 in 2015 for FreeIPA 4.2.0 to migrate old installations. FreeIPA's Dogtag instance has been configured to use LDAPProfiles since commit ba075b195c (2015). With pki_profiles_in_ldap=True pkispawn loads profiles into LDAP when the first CA instance is configure in a cluster (not for clones).
migrate_profiles_to_ldap()
pki_profiles_in_ldap=True
Server installer, replica installer, and server upgrader spend 10 to 15 seconds in the function. I think the function can safely removed. See https://github.com/freeipa/freeipa/pull/5167 for more discussion.
Alexander raise a possible issue. He mentioned that Dogtag will soon have a new profile for KRA. How does Dogtag handle new profiles? Is there a migration step in Dogtag that imports new profiles for us?
@cheimes I'll get back to you about that tomorrow. Profile additions/updates are usually handled in PKI upgrade scripts but I have to check if it works when LDAPProfileSubsystem is used. Too late for me to investigate now, though.
For the record Fraser has investigated the issue. Dogtag does not yet upgrade LDAPProfile subsystem.
master:
According to discussion in https://github.com/freeipa/freeipa/pull/5167 , the function can't be removed. It was sped up instead.
Metadata Update from @antorres: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)