summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2013-05-09 14:04:13 +0200
committerMartin Kosek <mkosek@redhat.com>2013-05-09 15:13:33 +0200
commit6368a60730097311510c0e1258790d916782e6d4 (patch)
treeebcdb8bb717581db5d1ab448084f8fecaad9bd8c /ipaserver
parent13cef6cac4c7f6c53e9fcfea97c5e830c8c69826 (diff)
downloadfreeipa-6368a60730097311510c0e1258790d916782e6d4.tar.gz
freeipa-6368a60730097311510c0e1258790d916782e6d4.tar.xz
freeipa-6368a60730097311510c0e1258790d916782e6d4.zip
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
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/bindinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 6694f0109..5a2450e61 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -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'),