From 5060fdfade63f299bf3ad15c16a1aff06135b80f Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 23 Nov 2010 09:02:54 -0500 Subject: Change signature of LDAPSearch.pre_callback. Add the opportunity to change base DN and scope in the callback. --- ipalib/plugins/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/user.py') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index b34ba99f9..5b6e03b66 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -251,11 +251,11 @@ class user_find(LDAPSearch): doc=_('Display user record for current Kerberos principal'), ), ) - def pre_callback(self, ldap, filter, entry_attrs, attrs_list, *keys, **options): + def pre_callback(self, ldap, filter, attrs_list, base_dn, scope, *keys, **options): if options.get('whoami'): return "(&(objectclass=posixaccount)(krbprincipalname=%s))"%\ getattr(context, 'principal') - return filter + return (filter, base_dn, scope) def post_callback(self, ldap, entries, truncated, *args, **options): for entry in entries: -- cgit