summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/dns.py
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-01-20 15:42:50 -0500
committerAdam Young <ayoung@redhat.com>2011-01-20 16:07:50 -0500
commitc22a3d25daee443db2e408c5325242691a62062e (patch)
tree4482c8cf96156cbe2177d58377a19d4fb86ee615 /ipalib/plugins/dns.py
parent861aa9c1b8ddf757b358f3a66e3ca57d4cc05b4c (diff)
downloadfreeipa-c22a3d25daee443db2e408c5325242691a62062e.tar.gz
freeipa-c22a3d25daee443db2e408c5325242691a62062e.tar.xz
freeipa-c22a3d25daee443db2e408c5325242691a62062e.zip
Fix dns_is_enabled command
Diffstat (limited to 'ipalib/plugins/dns.py')
-rw-r--r--ipalib/plugins/dns.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index e1d9ce668..6d2109741 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -624,7 +624,7 @@ class dns_is_enabled(Command):
INTERNAL = True
has_output = output.standard_value
- base_dn = 'cn=master,cn=ipa,cn=etc,%s' % api.env.basedn
+ base_dn = 'cn=masters,cn=ipa,cn=etc,%s' % api.env.basedn
filter = '(&(objectClass=ipaConfigObject)(cn=DNS))'
def execute(self, *args, **options):
@@ -632,8 +632,8 @@ class dns_is_enabled(Command):
dns_enabled = False
try:
- ent = ldap.find_entries(filter=filter, base_dn=base_dn)
- if len(e):
+ ent = ldap.find_entries(filter=self.filter, base_dn=self.base_dn)
+ if len(ent):
dns_enabled = True
except Exception, e:
pass