X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/5c1b38dfcca6193f447e3b953878c40d49cc758d..cca2307bae362ac6e3b76b14c753d9c775b6d7fb:/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('/', '.')