diff options
author | Adam Young <ayoung@redhat.com> | 2010-09-14 16:42:30 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-09-14 16:42:30 -0400 |
commit | 30def30eaffd9276a5ef226289097020271c7038 (patch) | |
tree | 58f78ff79f90c501a5756d013a55e4c0874f22a0 | |
parent | bef0690a2ff9cccf7de132e5e64b4ba631482764 (diff) | |
download | freeipa-30def30eaffd9276a5ef226289097020271c7038.tar.gz freeipa-30def30eaffd9276a5ef226289097020271c7038.tar.xz freeipa-30def30eaffd9276a5ef226289097020271c7038.zip |
Revert "user whoami"
This reverts commit bef0690a2ff9cccf7de132e5e64b4ba631482764.
-rw-r--r-- | ipalib/plugins/user.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index 803ee108d..5841d7a01 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -51,7 +51,6 @@ from ipalib import api, errors from ipalib import Flag, Int, Password, Str from ipalib.plugins.baseldap import * from ipalib import _, ngettext -from ipalib import util class user(LDAPObject): @@ -242,16 +241,6 @@ class user_find(LDAPSearch): Search for users. """ - takes_options = ( - Flag('whoami', - label=_('Self'), - doc=_('Display user record for current Kerberos principal'), - ), - ) - def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options): - if options.get('whoami', True): - return "(&(objectclass=posixaccount)(krbprincipalname="+util.get_current_principal() + "))" - msg_summary = ngettext( '%(count)d user matched', '%(count)d users matched', 0 ) |