migrating entries to the same-name domain (Moving from broken deployment to a fresh one)
ipa-migration fails (with --force continues, but fails to upgrade some of the entries)
ipa-server-4.12.2-24.el10_1.1.x86_64
always
Install a source server, modify the password policy, make a backup:
# ipa-server-install --domain ipa.test --realm IPA.TEST --setup-dns --forwarder 10.11.5.160 -a Secret123 -p Secret123 -U # echo Secret123 | kinit admin # ipa pwpolicy-mod --minlength 9 # dsctl slapd-IPA-TEST stop # dsctl slapd-IPA-TEST db2ldif userroot /tmp/userroot.ldif # dsctl slapd-IPA-TEST start # scp /tmp/userroot.ldif root@dest.ipa.test:/tmp
On the destination server, modify the file userroot.ldif and replace objectClass: ipaPwdPolicy with objectClass: ipapwdpolicy (lowercase attribute value).
objectClass: ipaPwdPolicy
objectClass: ipapwdpolicy
On the destination server, configure ipa server and call ipa-migrate:
# ipa-server-install --domain ipa.test --realm IPA.TEST --setup-dns --forwarder 10.11.5.160 -a Secret123 -p Secret123 -U # echo Secret123 | kinit admin # ipa-migrate stage-mode src1.ipa.test --db-ldif /tmp/userroot.ldif -w Secret123 -n Initializing ... Connecting to local server ... IPA to IPA migration starting ... Migrating schema ... Migrating configuration ... Migrating database ... (this may take a while) Failed to update "cn=global_policy,cn=IPA.TEST,cn=kerberos,dc=ipa,dc=test" error: Type or value exists
The values for objectclass are case-insensitive and should be compared as such.
clone of https://redhat.atlassian.net/browse/RHEL-153856
PR: https://github.com/freeipa/freeipa/pull/8256