Changeset 20cda34
- Timestamp:
- Nov 6, 2009 3:34:49 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 2ed74c6
- Parents:
- 3eefc2d
- Location:
- fedd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/abac_client.py
r3eefc2d r20cda34 185 185 type="string",default="https://localhost:23235", 186 186 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)") 187 190 self.add_option("-F","--useFedid", action="store_true", 188 191 dest="use_fedid", default=False, … … 233 236 type="string", 234 237 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 235 251 if add_node_callback: 236 252 self.add_option("-n", "--node", action="callback", type="string", … … 664 680 msg = { 665 681 '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 } 668 687 669 688 if opts.debug > 1: print >>sys.stderr, msg -
fedd/abac_test.sh
r3eefc2d r20cda34 4 4 ./abac_client.py create --cert=emulab.pem --transport=soap \ 5 5 --trace \ 6 --url=http://localhost:8443/axis /services/feddABACPort \6 --url=http://localhost:8443/axis2/services/feddABACPort \ 7 7 --file=/usr/local/tomcat5.5/webapps/axis/WEB-INF/geni.txt 8 8 # Run the negotiation with an access request 9 9 ./abac_client.py access --cert=emulab.pem --transport=soap \ 10 10 --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.