Fix LDAP updates in ipa-replica-install

ipalib API needs to be bootstrapped in 'installer' context otherwise
LDAP update plugins don't get initialized and ipa-replica-install
crashes.

https://fedorahosted.org/freeipa/ticket/2139
This commit is contained in:
Martin Kosek committed 2012-01-13 09:10:58 +01:00
1 parent 649d13b597
commit bc5085699d
1 file changed
+1 -1
+1 -1
View File
@@ -354,7 +354,7 @@ def main():
finally:
os.umask(old_umask)
api.bootstrap(in_server=True)
api.bootstrap(in_server=True, context='installer')
api.finalize()
# Create DS group if it doesn't exist yet