diff options
author | Adam Young <ayoung@redhat.com> | 2010-11-24 16:36:36 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-11-24 16:36:36 -0500 |
commit | 16b935169c556135dcab2908d102a884f803fda4 (patch) | |
tree | 45ff32cd8bb6d15f91c0671f2ffcd550eecff4cf /ipalib | |
parent | 091099480ff90c9b32a62bc241ead029e0bdc56c (diff) | |
download | freeipa-16b935169c556135dcab2908d102a884f803fda4.tar.gz freeipa-16b935169c556135dcab2908d102a884f803fda4.tar.xz freeipa-16b935169c556135dcab2908d102a884f803fda4.zip |
whoami fix
recent changes to the scope mechanism weren't propigated to the whoami call
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): |