summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host2.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-06-16 13:35:40 +0200
committerRob Crittenden <rcritten@redhat.com>2009-07-02 13:33:01 -0400
commitebdebe802dd74c9df82f87774bb3f5d9f6cbdee6 (patch)
tree333b536307819ec8520272a2500a82f6f09df77e /ipalib/plugins/host2.py
parent3ce00484f410e8968d68b1d5823d753c4cdf6365 (diff)
downloadfreeipa.git-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.tar.gz
freeipa.git-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.tar.xz
freeipa.git-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.zip
Remove all references to use_ldap2.
Diffstat (limited to 'ipalib/plugins/host2.py')
-rw-r--r--ipalib/plugins/host2.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/ipalib/plugins/host2.py b/ipalib/plugins/host2.py
index 52f1d3a3..1b2b7490 100644
--- a/ipalib/plugins/host2.py
+++ b/ipalib/plugins/host2.py
@@ -145,7 +145,6 @@ class host2_create(crud.Create):
assert 'cn' not in kw
assert 'dn' not in kw
assert 'krbprincipalname' not in kw
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
entry_attrs = self.args_options_2_entry(hostname, **kw)
@@ -209,7 +208,6 @@ class host2_delete(crud.Delete):
:param hostname: The name of the host being removed.
:param kw: Not used.
"""
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
dn = get_host(ldap, hostname)
@@ -251,7 +249,6 @@ class host2_mod(crud.Update):
"""
assert 'fqdn' not in kw
assert 'dn' not in kw
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
dn = get_host(ldap, hostname)
@@ -290,7 +287,6 @@ class host2_find(crud.Search):
)
def execute(self, term, **kw):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
search_kw = self.args_options_2_entry(**kw)
@@ -358,7 +354,6 @@ class host2_show(crud.Retrieve):
:param hostname: The login name of the host to retrieve.
:param kw: "all" set to True = return all attributes
"""
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
dn = get_host(ldap, hostname)