ipa-migrate(1)
β¨ ipa-migrate(1) β¨
okay so bestie, we're reading the ipa-migrate page from the IPA Manual Pages, and it's literally about moving a whole IPA server from one machine to another. no cap, this is main character energy for sysadmins π
πΈ NAME πΈ
ipa-migrate β migrate an IPA server from one machine to another π¦
π SYNOPSIS π
ipa-migrate [OPTIONS] prod-mode|stage-mode hostname
π DESCRIPTION π
so the whole vibe of ipa-migrate is: you take one IPA server hostname and you migrate it into an existing local IPA server installation. that's the assignment. periodt.
you're migrating the IPA schema, configuration, and database over to a local IPA server. and here's the cute part β this migration can be done online, where the tool just goes and queries the remote server, or offline, where you hand it LDIF files. and you can mix and match those two!! so like, imagine migrating the schema and configuration online, and then using an exported LDIF file just for the database migration portion. that's lowkey super useful for very large databases, because then you don't need to worry about network interruptions πβ¨
- prod-mode β in this mode, everything gets migrated, including the current user SIDs and DNA ranges. full send. π
- stage-mode β in this mode, SIDs & DNA ranges are not migrated, and DNA attributes are reset. it's giving "rehearsal, not the real show" π
β¨ OPTIONS β¨
-v,--verboseβ use verbose output while running the migration tool. she talks a lot. we love her for it π£οΈ-D,--bind-dn=BIND_DNβ the Bind DN (Distinguished Name), i.e. an LDAP entry, to bind to the remote IPA server with. typically this is"cn=directory manager", but honestly it could be any entry that has access to read theuserPasswordattribute. if it's ommitted, the default is"cn=directory manager"π-w,--bind-pw=PASSWORDβ the password for the Bind DN that's authenticating against the remote IPA server. if a password is not provided, then the tool will prompt for the password if needed π«Ά-j,--bind-pw-file=FILE_PATHβ path to a file containing the password for the Bind DN π-Z,--cacertfile=FILE_PATHβ path to a file containing a CA Certificate that the remote server trusts π-l,--log-file=FILE_PATHβ path to a file containing the migration log. by default the tool will use/var/log/ipa-migrate.logπ-x,--dryrunβ go through the whole migration process but do not write any data to the new IPA server. purely a vibe check π§-o,--dryrun-record=FILE_PATHβ go through the migration process but do not write any data to the new IPA server. however, write the migration operations to an LDIF file, which can be applied later or reused for multiple migrations. iconic reuse behaviour β»οΈ-r,--reset-rangeβ reset the ID range for migrated users/groups. in"stage-mode"this is done automatically π―-F,--forceβ ignore any errors and continue to proceed with the migration effort. chaotic. use with care π-q,--quietβ only log errors during the migration process π€«-B,--migrate-dnsβ migrate the DNS records π-S,--skip-schemaβ do not migrate the database schema π-C,--skip-configβ do not migrate the database configuration (dse.ldif/cn=config) π-O,--schema-overwriteβ overwrite existing schema definitions. by default, duplicate schema is skipped β¨-s,--subtree=DNβ specifies a custom database subtree that should be included in the migration. this is only needed if non-default subtrees/branches were added to the database outside of IPA π³-f,--db-ldif=FILE_PATHβ LDIF file containing the entire backend. if omitted, the tool will query the remote IPA server πΎ-m,--schema-ldif=FILE_PATHβ LDIF file containing the schema. if omitted, the tool will query the remote IPA server πΎ-g,--config-ldif=FILE_PATHβ LDIF file containing the entire"cn=config"DIT. if omitted, the tool will query the remote IPA server πΎ-n,--no-promptβ do not prompt for confirmation before starting migration. > use at your own risk! β οΈ
π POST MIGRATION π
okay bestie, here's what you're left with after the migration, and it's a lot, so read carefully π
- the server is left in migration-mode so that the migrated users can more easily reset their passwords, either by authenticating via SSSD or by using the web-based password migration page. this authentication will generate new Kerberos keys. after passwords are reset, the server should be taken out of migration mode π
- all hosts are preserved, but they will need to be re-enrolled using
ipa-client-install(e.g.ipa-client-install --uninstall && ipa-client-install) π - all certificates should be re-issued against the new CA π
- any manually created keytabs will need to be re-created using
ipa-getkeytabπ« - Vaults are not migrated and will have to be re-created π
- Sub CA's are not migrated and will have to be re-created ποΈ
β EXIT STATUS β
0β if the command was successful π1β if an error occurred π2β if the local host or remote host is not an IPA server, the IPA server installation is faulty, or the realm can not be determined π
and that's the whole page, bestie!! π«Ά this one's from the IPA manual set, dated Apr 2 2024 β go forth and migrate responsibly, mwah π β¨π
π¦ where this page comes from
- centos-stream 10: ipa-server 4.13.4-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: ipa-server 4.13.4-1.el9 Β· GPL-3.0-or-later
- fedora 43: freeipa-server 4.12.5-3.fc43 Β· GPL-3.0-or-later
- fedora 43: freeipa-server 4.13.4-2.fc43
- fedora 43: freeipa-server 4.13.4-3.fc43 Β· GPL-3.0-or-later
- fedora 44: freeipa-server 4.13.1-9.fc44 Β· GPL-3.0-or-later
- fedora 44: freeipa-server 4.13.4-2.fc44
- fedora 44: freeipa-server 4.13.4-3.fc44 Β· GPL-3.0-or-later
- Copyright (C) 2024 FreeIPA Contributors see COPYING for license
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms