summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/whoami.py
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-08-02 14:36:33 -0400
committerRob Crittenden <rcritten@redhat.com>2010-08-02 16:28:07 -0400
commitf9ff041c5cd5ac11af2edb59cb7a707582193df6 (patch)
tree78bdceb1b3b637be34fbb11ff34d8d17fdf88446 /ipalib/plugins/whoami.py
parent47d4fcdd8178ec4b8403efa4f80eaa009c32d78b (diff)
downloadfreeipa-webui-details.tar.gz
freeipa-webui-details.tar.xz
freeipa-webui-details.zip
Revert WebUI changeswebui-details
Reverted with: % git diff --binary HEAD..d4adbc8052faf18fb31e7b1865037aa107067d4b > revert.patch % git apply revert.patch % git commit -a
Diffstat (limited to 'ipalib/plugins/whoami.py')
-rw-r--r--ipalib/plugins/whoami.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/ipalib/plugins/whoami.py b/ipalib/plugins/whoami.py
deleted file mode 100644
index 4742eb0a8..000000000
--- a/ipalib/plugins/whoami.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# Authors:
-# Adam Young <ayoung@redhat.com>
-#
-# Copyright (C) 2010 Red Hat
-# see file 'COPYING' for use and warranty information
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; version 2 only
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-"""
-whoami plugin: tells you your current principal
-"""
-
-
-from ipalib import api, errors
-from ipalib import Command, Str
-from ipalib import output, util
-
-
-class whoami(Command):
- """
- Reflects user principal
- """
- has_output = (
- output.summary,
- )
-
- def execute(self):
- return dict(summary=util.get_current_principal())
-
-api.register(whoami)
-