diff options
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/user.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 5b6e03b66..64120fd2b 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -253,8 +253,9 @@ class user_find(LDAPSearch): ) 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 ("(&(objectclass=posixaccount)(krbprincipalname=%s))"%\ + getattr(context, 'principal'), base_dn, scope) + return (filter, base_dn, scope) def post_callback(self, ldap, entries, truncated, *args, **options): |