diff options
author | Pavel Zuna <pzuna@redhat.com> | 2009-06-16 13:35:40 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-07-02 13:33:01 -0400 |
commit | ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6 (patch) | |
tree | 333b536307819ec8520272a2500a82f6f09df77e /ipalib/plugins/service2.py | |
parent | 3ce00484f410e8968d68b1d5823d753c4cdf6365 (diff) | |
download | freeipa.git-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.tar.gz freeipa.git-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.tar.xz freeipa.git-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.zip |
Remove all references to use_ldap2.
Diffstat (limited to 'ipalib/plugins/service2.py')
-rw-r--r-- | ipalib/plugins/service2.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ipalib/plugins/service2.py b/ipalib/plugins/service2.py index 7b21b584..2722203a 100644 --- a/ipalib/plugins/service2.py +++ b/ipalib/plugins/service2.py @@ -124,7 +124,6 @@ class service2_create(crud.Create): :param kw: Keyword arguments for the other LDAP attributes. """ assert 'krbprincipalname' not in kw - assert self.api.env.use_ldap2, 'use_ldap2 is False' ldap = self.api.Backend.ldap2 # FIXME: should be in a normalizer. Need to fix normalizers to work # on non-unicode data @@ -187,7 +186,6 @@ class service2_delete(crud.Delete): :param principal: The service to be added in the form: service/hostname :param kw: not used """ - assert self.api.env.use_ldap2, 'use_ldap2 is False' ldap = self.api.Backend.ldap2 (dn, entry_attrs) = ldap.find_entry_by_attr( @@ -216,7 +214,6 @@ class service2_mod(crud.Update): Modify service. """ def execute(self, principal, **kw): - assert self.api.env.use_ldap2, 'use_ldap2 is False' ldap = self.api.Backend.ldap # FIXME, should be in a normalizer. Need to fix normalizers to work # on non-unicode data. @@ -261,7 +258,6 @@ class service2_find(crud.Search): ) def execute(self, term, **kw): - assert self.api.env.use_ldap2, 'use_ldap2 is False' ldap = self.api.Backend.ldap2 # lisp style! @@ -342,7 +338,6 @@ class service2_show(crud.Retrieve): :param principal: The service principal to retrieve :param kw: Not used. """ - assert self.api.env.use_ldap2, 'use_ldap2 is False' ldap = self.api.Backend.ldap2 dn = ldap.make_dn_from_attr( |