'Handles user authentication with gssapi/kerberos'

def authenticate_user(self, r):

    auth_header = self.generate_request_header(r)
    log.debug(('authenticate_user():    Authorization    header:    %s' % auth_header))
    r.request.headers['Authorization'] = auth_header
    r.request.send(anyway=True)
    _r = r.request.response
    _r.history.append(r)
    log.debug(('authenticate_user():    returning    %s' % _r))
    return _r
