summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/group.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2010-11-23 09:02:54 -0500
committerAdam Young <ayoung@redhat.com>2010-11-23 21:29:08 -0500
commit5060fdfade63f299bf3ad15c16a1aff06135b80f (patch)
tree4c6d5c7b5968c21e9af72423c25fe4a5e9b8a933 /ipalib/plugins/group.py
parent6d51a48af8afc52a0bf3f9437b2de1c2b8c1c0d4 (diff)
downloadfreeipa-5060fdfade63f299bf3ad15c16a1aff06135b80f.tar.gz
freeipa-5060fdfade63f299bf3ad15c16a1aff06135b80f.tar.xz
freeipa-5060fdfade63f299bf3ad15c16a1aff06135b80f.zip
Change signature of LDAPSearch.pre_callback.
Add the opportunity to change base DN and scope in the callback.
Diffstat (limited to 'ipalib/plugins/group.py')
-rw-r--r--ipalib/plugins/group.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py
index 5ecc72ae8..5db3c67ec 100644
--- a/ipalib/plugins/group.py
+++ b/ipalib/plugins/group.py
@@ -223,7 +223,7 @@ class group_find(LDAPSearch):
),
)
- def pre_callback(self, ldap, filter, attrs_list, base_dn, *args, **options):
+ def pre_callback(self, ldap, filter, attrs_list, base_dn, scope, *args, **options):
# if looking for private groups, we need to create a new search filter,
# because private groups have different object classes
if options['private']:
@@ -243,7 +243,7 @@ class group_find(LDAPSearch):
cflt = ldap.make_filter(search_kw, exact=False)
filter = ldap.combine_filters((oflt, cflt), rules=ldap.MATCH_ALL)
- return filter
+ return (filter, base_dn, scope)
api.register(group_find)