diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-10-16 10:32:20 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-10-16 10:32:20 -0400 |
commit | 12f1e7fdf75b001ed2b73525a242feb15b272d51 (patch) | |
tree | 6e4962106c2da5e7dee5a8fbf9f3de324420fdca /ipa_server | |
parent | 1a8317ff7471214811d39ab846d402dc22a03779 (diff) | |
download | freeipa-12f1e7fdf75b001ed2b73525a242feb15b272d51.tar.gz freeipa-12f1e7fdf75b001ed2b73525a242feb15b272d51.tar.xz freeipa-12f1e7fdf75b001ed2b73525a242feb15b272d51.zip |
Remove all references to ipa_server.* from user plugin
Diffstat (limited to 'ipa_server')
-rw-r--r-- | ipa_server/plugins/b_ldap.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ipa_server/plugins/b_ldap.py b/ipa_server/plugins/b_ldap.py index dca9b3fea..29f2ee843 100644 --- a/ipa_server/plugins/b_ldap.py +++ b/ipa_server/plugins/b_ldap.py @@ -85,7 +85,17 @@ class ldap(CrudBackend): return entry['dn'] - def generate_search_filters(self, **kw): + def get_ipa_config(self): + """Return a dictionary of the IPA configuration""" + return servercore.get_ipa_config() + + def mark_entry_active(self, dn): + return servercore.mark_entry_inactive(dn) + + def mark_entry_inactive(self, dn): + return servercore.mark_entry_inactive(dn) + + def _generate_search_filters(self, **kw): """Generates a search filter based on a list of words and a list of fields to search against. @@ -110,6 +120,8 @@ class ldap(CrudBackend): return (exact_match_filter, partial_match_filter) + # The CRUD operations + def create(self, **kw): if servercore.entry_exists(kw['dn']): raise errors.DuplicateEntry("entry already exists") @@ -148,7 +160,7 @@ class ldap(CrudBackend): objectclass = kw.get('objectclass') if objectclass: del kw['objectclass'] - (exact_match_filter, partial_match_filter) = self.generate_search_filters(**kw) + (exact_match_filter, partial_match_filter) = self._generate_search_filters(**kw) if objectclass: exact_match_filter = "(&(objectClass=%s)%s)" % (objectclass, exact_match_filter) partial_match_filter = "(&(objectClass=%s)%s)" % (objectclass, partial_match_filter) |