summaryrefslogtreecommitdiffstats
path: root/ipa_server
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-16 10:32:20 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-16 10:32:20 -0400
commit12f1e7fdf75b001ed2b73525a242feb15b272d51 (patch)
tree6e4962106c2da5e7dee5a8fbf9f3de324420fdca /ipa_server
parent1a8317ff7471214811d39ab846d402dc22a03779 (diff)
downloadfreeipa-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.py16
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)