diff options
author | Simo Sorce <simo@redhat.com> | 2014-02-28 16:16:25 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-03-02 18:11:11 -0500 |
commit | 51f2e1822ce32983c52435185afb5f803d3d150a (patch) | |
tree | 11f2e31685ff4a99ef3062cbd118d0bf6df32511 /ipsilon/login/authkrb.py | |
parent | 768e7740d5a37b34794b5bdc823a13c55a4cc9b7 (diff) | |
download | ipsilon-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-x | ipsilon/login/authkrb.py | 6 |
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() |