summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-03-19 17:05:04 -0400
committerSimo Sorce <simo@redhat.com>2014-03-19 17:34:01 -0400
commita20ce824bb867e50e888d4ffb1357f35dbdfebc3 (patch)
tree3123bff8d61524c9a9d276bc5d4627b3974e239c
parent75f41dae09e411b0d7ebbcf66a2e8d596d08addf (diff)
downloadipsilon-a20ce824bb867e50e888d4ffb1357f35dbdfebc3.tar.gz
ipsilon-a20ce824bb867e50e888d4ffb1357f35dbdfebc3.tar.xz
ipsilon-a20ce824bb867e50e888d4ffb1357f35dbdfebc3.zip
Remove unused import and fix syntax
Signed-off-by: Simo Sorce <simo@redhat.com>
-rwxr-xr-xipsilon/login/authkrb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipsilon/login/authkrb.py b/ipsilon/login/authkrb.py
index 77b907b..8069c6a 100755
--- a/ipsilon/login/authkrb.py
+++ b/ipsilon/login/authkrb.py
@@ -18,7 +18,6 @@
# 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
@@ -36,7 +35,7 @@ class KrbAuth(LoginPageBase):
# If we can get here, we must be authenticated and remote_user
# was set. Check the session has a user set already or error.
if self.user and self.user.name:
- userdata = { 'krb_principal_name': 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()