X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/70f60ee3aa8c2416ef0b72bb89341af2975420a5..ecdb33ab57f8072f39826c28f936f0c04f9d82a4:/code/main.py diff --git a/code/main.py b/code/main.py index cffa809..8a5e001 100755 --- a/code/main.py +++ b/code/main.py @@ -681,7 +681,7 @@ def getUser(environ): if environ.get('AUTH_TYPE') == 'Negotiate': # Convert the krb5 principal into a krb4 username - if not user.endswith('@%s' % config.authn[0].realm): + if not user.endswith('@%s' % config.kerberos.realm): return else: return user.split('@')[0].replace('/', '.')