freeipa/ipaserver/install
Petr Viktorin 1d3ddeff54 Fix schema replication from old masters
The new merged database will replicate with both the IPA and CA trees, so all
DS instances (IPA and CA on the existing master, and the merged one on the
replica) need to have the same schema.

Dogtag does all its schema modifications online. Those are replicated normally.
The basic IPA schema, however, is delivered in ldif files, which are not
replicated. The files are not present on old CA DS instances. Any schema
update that references objects in these files will fail.

The whole 99user.ldif (i.e. changes introduced dynamically over LDAP) is
replicated as a blob. If we updated the old master's CA schema dynamically
during replica install, it would conflict with updates done during the
installation: the one with the lower CSN would get lost.
Dogtag's spawn script recently grew a new flag, 'pki_clone_replicate_schema'.
Turning it off tells Dogtag to create its schema in the clone, where the IPA
modifications are taking place, so that it is not overwritten by the IPA schema
on replication.

The patch solves the problems by:
- In __spawn_instance, turning off the pki_clone_replicate_schema flag.
- Providing a script to copy the IPA schema files to the CA DS instance.
  The script needs to be copied to old masters and run there.
- At replica CA install, checking if the schema is updated, and failing if not.
  The --skip-schema-check option is added to ipa-{replica,ca}-install to
  override the check.

All pre-3.1 CA servers in a domain will have to have the script run on them to
avoid schema replication errors.

https://fedorahosted.org/freeipa/ticket/3213
2012-11-23 12:19:19 +01:00
..
plugins Make service naming in ipa-server-install consistent 2012-10-22 21:37:11 -04:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
adtrustinstance.py ipa-adtrust-install: allow to reset te NetBIOS domain name 2012-11-08 08:18:14 +01:00
bindinstance.py Do not require resolvable nameserver in DNS install 2012-11-09 14:21:34 +01:00
cainstance.py Fix schema replication from old masters 2012-11-23 12:19:19 +01:00
certs.py Use correct Dogtag port in ipaserver.install.certs 2012-09-20 13:58:53 +02:00
dsinstance.py Changes to use a single database for dogtag and IPA 2012-11-23 12:19:19 +01:00
httpinstance.py Make service naming in ipa-server-install consistent 2012-10-22 21:37:11 -04:00
installutils.py Changes to use a single database for dogtag and IPA 2012-11-23 12:19:19 +01:00
ipa_ldap_updater.py Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
krbinstance.py Make service naming in ipa-server-install consistent 2012-10-22 21:37:11 -04:00
ldapupdate.py Enable transactions by default, make password and modrdn TXN-aware 2012-11-21 14:55:12 +01:00
Makefile.am Add ipa-adtrust-install utility 2011-09-14 18:45:13 -04:00
memcacheinstance.py Add ipa_memcached service 2012-02-09 13:20:28 -06:00
ntpinstance.py Make service naming in ipa-server-install consistent 2012-10-22 21:37:11 -04:00
replication.py Changes to use a single database for dogtag and IPA 2012-11-23 12:19:19 +01:00
service.py Make service naming in ipa-server-install consistent 2012-10-22 21:37:11 -04:00
sysupgrade.py Add sysupgrade state file 2012-06-10 21:23:10 -04:00
upgradeinstance.py Make service naming in ipa-server-install consistent 2012-10-22 21:37:11 -04:00