--> --> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.5: /usr/bin/python
Thu Jun 29 01:40:12 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /afs/athena.mit.edu/activity/w/westgate/web_scripts/scripts/playroom/terms.py in ()
      4 import lib
      5 
=>    6 mitname,mitemail = lib.GetUserCert()
      7 if not mitname:
      8     print 'Content-type: text/html'
mitname undefined, mitemail undefined, lib = <module 'lib' from '/afs/athena.mit.edu/activity/w/westgate/web_scripts/scripts/playroom/lib.pyc'>, lib.GetUserCert = <function GetUserCert>
 /afs/athena.mit.edu/activity/w/westgate/web_scripts/scripts/playroom/lib.py in GetUserCert()
    365 #----------------------------------------------------------------------------------
    366 def GetUserCert():
=>  367     return GetAttributes('cn'),GetAttributes('mail')
    368 
    369 #----------------------------------------------------------------------------------
global GetAttributes = <function GetAttributes>
 /afs/athena.mit.edu/activity/w/westgate/web_scripts/scripts/playroom/lib.py in GetAttributes(attr='cn')
    335         keys = os.environ.keys()
    336         keys.sort()
=>  337         searchid = os.environ['SSL_CLIENT_S_DN_Email'].split('@')
    338         l = ldap.open("ldap.mit.edu")
    339         l.protocol_version = ldap.VERSION3
searchid undefined, global os = <module 'os' from '/usr/lib64/python2.7/os.pyc'>, os.environ = {'SSL_VERSION_INTERFACE': 'mod_ssl/2.4.10', 'SSL...,OU=InCommon,O=Internet2,L=Ann Arbor,ST=MI,C=US'}, ].split undefined
 /usr/lib64/python2.7/UserDict.py in __getitem__(self={'SSL_VERSION_INTERFACE': 'mod_ssl/2.4.10', 'SSL...,OU=InCommon,O=Internet2,L=Ann Arbor,ST=MI,C=US'}, key='SSL_CLIENT_S_DN_Email')
     21         if hasattr(self.__class__, "__missing__"):
     22             return self.__class__.__missing__(self, key)
=>   23         raise KeyError(key)
     24     def __setitem__(self, key, item): self.data[key] = item
     25     def __delitem__(self, key): del self.data[key]
builtin KeyError = <type 'exceptions.KeyError'>, key = 'SSL_CLIENT_S_DN_Email'

<type 'exceptions.KeyError'>: 'SSL_CLIENT_S_DN_Email'
      args = ('SSL_CLIENT_S_DN_Email',)
      message = 'SSL_CLIENT_S_DN_Email'