Changeset c0f409a for fedd


Ignore:
Timestamp:
Apr 13, 2012 9:27:37 AM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
4d68ba6
Parents:
5f6ebd0
Message:

Log and report misconfigured user certs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r5f6ebd0 rc0f409a  
    883883                alloc_log =  self.initialize_experiment_info(attrs, aid,
    884884                        certfile, tmpdir)
     885            # A misconfigured cert in the ABAC map can be confusing...
     886            if not os.access(xmlrpc_cert, os.R_OK):
     887                self.log.error("Cannot open user's emulab SSL cert: %s" % \
     888                        xmlrpc_cert)
     889                raise service_error(service_error.internal,
     890                        "Cannot open user's emulab SSL cert: %s" % xmlrpc_cert)
     891
    885892
    886893            if '/' in proj: proj, gid = proj.split('/')
Note: See TracChangeset for help on using the changeset viewer.