ipa-dns-install: use STARTTLS to connect to DS

BindInstance et al. now use STARTTLS to set up secure connection to DS during
ipa-dns-install. This fixes https://fedorahosted.org/freeipa/ticket/4933

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Martin Babinsky authored and Tomas Babej committed 2015-03-18 12:31:23 +01:00
1 parent a58b77ca9c
commit 7b6bee030d
6 files changed
+33 -17

No files matched your search

+7 -4
View File
@@ -533,13 +533,16 @@ class DnsBackup(object):
class BindInstance(service.Service):
def __init__(self, fstore=None, dm_password=None, api=api):
service.Service.__init__(self, "named",
def __init__(self, fstore=None, dm_password=None, api=api,
start_tls=False):
service.Service.__init__(
self, "named",
service_desc="DNS",
dm_password=dm_password,
ldapi=False,
autobind=ipaldap.AUTOBIND_DISABLED
)
autobind=ipaldap.AUTOBIND_DISABLED,
start_tls=start_tls
)
self.dns_backup = DnsBackup(self)
self.named_user = None
self.domain = None