summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/authkrb.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-02-28 16:16:25 -0500
committerSimo Sorce <simo@redhat.com>2014-03-02 18:11:11 -0500
commit51f2e1822ce32983c52435185afb5f803d3d150a (patch)
tree11f2e31685ff4a99ef3062cbd118d0bf6df32511 /ipsilon/login/authkrb.py
parent768e7740d5a37b34794b5bdc823a13c55a4cc9b7 (diff)
downloadipsilon-51f2e1822ce32983c52435185afb5f803d3d150a.tar.gz
ipsilon-51f2e1822ce32983c52435185afb5f803d3d150a.tar.xz
ipsilon-51f2e1822ce32983c52435185afb5f803d3d150a.zip
Add way to return Kerberos nameid if available
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/login/authkrb.py')
-rwxr-xr-xipsilon/login/authkrb.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipsilon/login/authkrb.py b/ipsilon/login/authkrb.py
index b6ff99c..77b907b 100755
--- a/ipsilon/login/authkrb.py
+++ b/ipsilon/login/authkrb.py
@@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from ipsilon.login.common import LoginPageBase, LoginManagerBase
+from ipsilon.util.user import UserSession
import cherrypy
@@ -33,9 +34,10 @@ class KrbAuth(LoginPageBase):
def root(self, *args, **kwargs):
# If we can get here, we must be authenticated and remote_user
- # was set. Check the session has a use set already or error.
+ # was set. Check the session has a user set already or error.
if self.user and self.user.name:
- return self.lm.auth_successful(self.user.name)
+ userdata = { 'krb_principal_name': self.user.name }
+ return self.lm.auth_successful(self.user.name, userdata)
else:
return self.lm.auth_failed()