Move the decision to force schema updates out of IPASimpleLDAPObject

This decision used the api object, which might not be available
in installer code. Move the decision to callers.

Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
Petr Viktorin
2013-01-17 09:24:21 -05:00
committed by Martin Kosek
parent 08276c24fe
commit 2f84bd694b
3 changed files with 25 additions and 9 deletions

View File

@@ -1752,7 +1752,8 @@ def replica_ca_install_check(config, master_ds_port):
objectclass = 'ipaObject'
root_logger.debug('Checking if IPA schema is present in %s', ca_ldap_url)
try:
connection = ldap2.IPASimpleLDAPObject(ca_ldap_url)
connection = ldap2.IPASimpleLDAPObject(
ca_ldap_url, force_schema_updates=False)
connection.start_tls_s()
connection.simple_bind_s(DN(('cn', 'Directory Manager')),
config.dirman_password)