summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/bindinstance.py
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2015-03-12 17:05:39 +0100
committerTomas Babej <tbabej@redhat.com>2015-03-18 12:31:23 +0100
commit26d6c6fbbbd6d024d82b1ab515d300e6113d2c34 (patch)
tree2628a0123f547c117b0cea87f09e4569bd603f22 /ipaserver/install/bindinstance.py
parent7b6bee030dac08807f254fdf58ba867c36cab23d (diff)
downloadfreeipa-26d6c6fbbbd6d024d82b1ab515d300e6113d2c34.tar.gz
freeipa-26d6c6fbbbd6d024d82b1ab515d300e6113d2c34.tar.xz
freeipa-26d6c6fbbbd6d024d82b1ab515d300e6113d2c34.zip
ipa-dns-install: use LDAPI to connect to DS
ipa-dns-install now uses LDAPI/autobind to connect to DS during the setup of DNS/DNSSEC-related service and thus makes -p option obsolete. Futhermore, now it makes more sense to use LDAPI also for API Backend connections to DS and thus all forms of Kerberos auth were removed. This fixes https://fedorahosted.org/freeipa/ticket/4933 and brings us closer to fixing https://fedorahosted.org/freeipa/ticket/2957 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r--ipaserver/install/bindinstance.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 679dc5b95..97dcb3d95 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -533,14 +533,14 @@ class DnsBackup(object):
class BindInstance(service.Service):
- def __init__(self, fstore=None, dm_password=None, api=api,
- start_tls=False):
+ def __init__(self, fstore=None, dm_password=None, api=api, ldapi=False,
+ start_tls=False, autobind=ipaldap.AUTOBIND_DISABLED):
service.Service.__init__(
self, "named",
service_desc="DNS",
dm_password=dm_password,
- ldapi=False,
- autobind=ipaldap.AUTOBIND_DISABLED,
+ ldapi=ldapi,
+ autobind=autobind,
start_tls=start_tls
)
self.dns_backup = DnsBackup(self)
@@ -586,7 +586,7 @@ class BindInstance(service.Service):
self.first_instance = not dns_container_exists(
self.fqdn, self.suffix, realm=self.realm, ldapi=True,
- dm_password=self.dm_password)
+ dm_password=self.dm_password, autobind=self.autobind)
self.__setup_sub_dict()