Created
May 20, 2019 15:14
-
-
Save gregjan/5e325713d32e9c27585dadf22bff3141 to your computer and use it in GitHub Desktop.
authorization setting attempt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ciber-vs1:testbed$ curl -X PUT -v -H "Content-Type: text/turtle" --data-binary @auth.ttl -u admin:admin http://ciber-vs1.umd.edu:10080?ext=acl | |
* About to connect() to ciber-vs1.umd.edu port 10080 (#0) | |
* Trying 128.8.216.153... | |
* Connected to ciber-vs1.umd.edu (128.8.216.153) port 10080 (#0) | |
* Server auth using Basic with user 'admin' | |
> PUT /?ext=acl HTTP/1.1 | |
> Authorization: Basic YWRtaW46YWRtaW4= | |
> User-Agent: curl/7.29.0 | |
> Host: ciber-vs1.umd.edu:10080 | |
> Accept: */* | |
> Content-Type: text/turtle | |
> Content-Length: 241 | |
> | |
* upload completely sent off: 241 out of 241 bytes | |
< HTTP/1.1 204 No Content | |
< Link: <http://www.w3.org/ns/ldp#RDFSource>; rel="type" | |
< Link: <http://www.w3.org/ns/ldp#Resource>; rel="type" | |
< Date: Mon, 20 May 2019 15:12:01 GMT | |
< | |
* Connection #0 to host ciber-vs1.umd.edu left intact | |
ciber-vs1:testbed$ curl -X GET -v -H "Accept: text/turtle" -u admin:admin http://ciber-vs1.umd.edu:10080?ext=acl | |
* About to connect() to ciber-vs1.umd.edu port 10080 (#0) | |
* Trying 128.8.216.153... | |
* Connected to ciber-vs1.umd.edu (128.8.216.153) port 10080 (#0) | |
* Server auth using Basic with user 'admin' | |
> GET /?ext=acl HTTP/1.1 | |
> Authorization: Basic YWRtaW46YWRtaW4= | |
> User-Agent: curl/7.29.0 | |
> Host: ciber-vs1.umd.edu:10080 | |
> Accept: text/turtle | |
> | |
< HTTP/1.1 404 Not Found | |
< Connection: keep-alive | |
< Content-Length: 0 | |
< Date: Mon, 20 May 2019 15:12:06 GMT | |
< | |
* Connection #0 to host ciber-vs1.umd.edu left intact | |
ciber-vs1:testbed$ cat auth.ttl | |
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | |
<#authorization> a acl:Authorization ; | |
acl:accessTo <http://ciber-vs1.umd.edu:10080/> ; | |
acl:agent <https://admin.example.com/profile/#me> ; | |
acl:mode acl:Read, acl:Write, acl:Control . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment