Do not add ipa-ca records on CA-less installs

ipa-dns-install crashed when it was run on a CA-less server.

https://fedorahosted.org/freeipa/ticket/3617
This commit is contained in:
Martin Kosek 2013-05-09 14:04:13 +02:00
parent 13cef6cac4
commit 6368a60730

View File

@ -733,7 +733,7 @@ class BindInstance(service.Service):
self.__add_ipa_ca_records(self.fqdn, [self.ip_address],
self.ca_configured)
if self.first_instance:
if self.first_instance and self.ca_configured:
ldap = api.Backend.ldap2
entries = ldap.get_entries(
DN(('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'),