Changeset 66879a0


Ignore:
Timestamp:
Sep 20, 2011 10:21:09 AM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
5954004
Parents:
52131d3
Message:

Add debugging messages to catch delegation failures because the cert is
not a fedid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_create.py

    r52131d3 r66879a0  
    133133        if not debug:
    134134            if subprocess.call(cmd) != 0:
     135                print >>sys.stderr, "Cannot delegate, things may fail"
    135136                return []
    136137        else:
     
    141142        if context.load_id_file(certfile) != ABAC.ABAC_CERT_SUCCESS or \
    142143                context.load_attribute_file(fn) != ABAC.ABAC_CERT_SUCCESS:
     144            print >>sys.stderr, "Cannot load delegation into ABAC. " + \
     145                    "Did you run cert_to_fedid.py on your X.509 cert?"
    143146            return []
    144147        ids, attrs = abac_context_to_creds(context)
Note: See TracChangeset for help on using the changeset viewer.