source: fedd/abac_test.sh @ f3803ea

axis_examplecompt_changesinfo-opsversion-3.01version-3.02
Last change on this file since f3803ea was 1e643da, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

Changes to use axis instead of axis2. Policy files are still located in axis2.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[af51a97]1#!/bin/sh
2
[e14f472]3# Create a new contexts for the negotiation
[181cf9c]4./abac_client.py create --cert=emulab.pem --transport=soap \
[1e643da]5        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]6        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/ucla.txt
7#       --trace \
8./abac_client.py create --cert=emulab.pem --transport=soap \
[1e643da]9        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]10        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/bill.txt
11#       --trace \
12./abac_client.py create --cert=emulab.pem --transport=soap \
[1e643da]13        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]14        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/alice.txt
15#       --trace \
[e14f472]16./abac_client.py create --cert=emulab.pem --transport=soap \
[1e643da]17        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]18        --file=/usr/local/tomcat5.5/webapps/axis2/WEB-INF/james.txt
19#       --trace \
[e14f472]20# Run the negotiation with an access request
21#./abac_client.py access --cert=emulab.pem --transport=soap \
22#       --trace \
23#       --url=http://localhost:8443/axis2/services/feddABACPort \
24#       --context_id=0 --goal='GENI:GENI.CTFaccess<<---Alice'
[20cda34]25# Test a two part negoitation
26./abac_client.py access --cert=emulab.pem --transport=soap \
[1e643da]27        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]28        --context_id=UCLA --goal='UCLA:GENI.CTFaccess<<---Alice' \
[1e643da]29        --srcURL=https://localhost:8443/axis/services/feddABACPort \
[e14f472]30        --dstContext=Alice \
[1e643da]31        --dstURL=https://localhost:8443/axis/services/feddABACPort
[7723a2f]32#       --trace \
33./abac_client.py access --cert=emulab.pem --transport=soap \
[1e643da]34        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]35        --context_id=UCLA --goal='UCLA:GENI.CTFaccess<<---James' \
[1e643da]36        --srcURL=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]37        --dstContext=James \
[1e643da]38        --dstURL=https://localhost:8443/axis/services/feddABACPort
[7723a2f]39#       --trace \
40./abac_client.py access --cert=emulab.pem --transport=soap \
[1e643da]41        --url=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]42        --context_id=UCLA --goal='UCLA:GENI.CTFaccess<<---Bill' \
[1e643da]43        --srcURL=https://localhost:8443/axis/services/feddABACPort \
[7723a2f]44        --dstContext=Bill \
[1e643da]45        --dstURL=https://localhost:8443/axis/services/feddABACPort
[20cda34]46
Note: See TracBrowser for help on using the repository browser.