Changeset 20cda34


Ignore:
Timestamp:
Nov 6, 2009 3:34:49 PM (15 years ago)
Author:
Jay Jacobs <Jay.Jacobs@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
2ed74c6
Parents:
3eefc2d
Message:

Added two-party functionality and example

Location:
fedd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/abac_client.py

    r3eefc2d r20cda34  
    185185                type="string",default="https://localhost:23235", 
    186186                help="URL to connect to (default %default)")
     187        self.add_option("-n", "--ident", action="store", dest="id",
     188                type="string",default="Alice", 
     189                help="URL to connect to (default %default)")
    187190        self.add_option("-F","--useFedid", action="store_true",
    188191                dest="use_fedid", default=False,
     
    233236                type="string",
    234237                help="Trust target goal for negotiation (required)")
     238        self.add_option("--srcURL", action="store", dest="srcURL",
     239                type="string",default="https://localhost:23235", 
     240                help="Originating URL address (Default: %default)")
     241        self.add_option("--dstURL", action="store", dest="dstURL",
     242                type="string",default="https://localhost:23235", 
     243                help="Peer URL address (Default: %default)")
     244        self.add_option("--srcContext", action="store", dest="srcContext",
     245                type="string",default="Alice", 
     246                help="Service negotiation context (Default: %default)")
     247        self.add_option("--dstContext", action="store", dest="dstContext",
     248                type="string",default="Bob", 
     249                help="Client call back negotiation context (Default: %default)")
     250
    235251        if add_node_callback:
    236252            self.add_option("-n", "--node", action="callback", type="string",
     
    664680        msg = {
    665681                'context': { 'contextID': opts.id },
    666                 'goal': opts.goal
    667                 }
     682                'goal': opts.goal,
     683                'peerURL': opts.dstURL,
     684                'peerContext' : { 'contextID': opts.dstContext },
     685                'selfURL': opts.srcURL
     686        }
    668687
    669688        if opts.debug > 1: print >>sys.stderr, msg
  • fedd/abac_test.sh

    r3eefc2d r20cda34  
    44./abac_client.py create --cert=emulab.pem --transport=soap \
    55        --trace \
    6         --url=http://localhost:8443/axis/services/feddABACPort \
     6        --url=http://localhost:8443/axis2/services/feddABACPort \
    77        --file=/usr/local/tomcat5.5/webapps/axis/WEB-INF/geni.txt
    88# Run the negotiation with an access request
    99./abac_client.py access --cert=emulab.pem --transport=soap \
    1010        --trace \
    11         --url=http://localhost:8443/axis/services/feddABACPort \
    12         --context_id=0 --goal='GENI:GENI.CTFaccess<<---Alice'
     11        --url=http://localhost:8443/axis2/services/feddABACPort \
     12        --context_id=0 --goal='GENI:GENI.CTFaccess<<---Alice'
     13# Test a two part negoitation
     14./abac_client.py access --cert=emulab.pem --transport=soap \
     15        --trace --url=http://localhost:8443/axis2/services/feddABACPort
     16        --context_id=0 --goal='GENI:GENI.CTFaccess<<---Alice' \
     17        --srcURL=http://localhost:8443/axis2/services/feddABACPort \
     18        --dstContext=1 \
     19        --dstURL=http://localhost:8443/axis2/services/feddABACPort
     20
Note: See TracChangeset for help on using the changeset viewer.