mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
update related to http_x_remote_user
parent
884361b9ba
commit
cdd2abf15a
1 changed files with 18 additions and 8 deletions
|
@ -52,7 +52,7 @@ sudo -u radicale /usr/bin/radicale --logging-level debug
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
netstat -nlpt | grep ":5232 "
|
netstat -nlpt | grep ":5232 "
|
||||||
tcp 0 0 127.0.0.1:5232 0.0.0.0:* LISTEN 4117/python3
|
tcp 0 0 127.0.0.1:5232 0.0.0.0:* LISTEN 4117/python3
|
||||||
tcp6 0 0 ::1:5232 :::* LISTEN 4117/python3
|
tcp6 0 0 ::1:5232 :::* LISTEN 4117/python3
|
||||||
|
@ -69,7 +69,7 @@ Direct connection tests, for tests via reverse proxy see [Reverse-Proxy-Diagnost
|
||||||
|
|
||||||
### Redirect to landing page
|
### Redirect to landing page
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl http://localhost:5232/
|
curl http://localhost:5232/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ Redirected to /.web
|
||||||
|
|
||||||
### WebUI
|
### WebUI
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl http://localhost:5232/.web/
|
curl http://localhost:5232/.web/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -96,16 +96,26 @@ Successful result depends on auth and permission
|
||||||
|
|
||||||
### Without authentication
|
### Without authentication
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl -s --request PROPFIND http://localhost:5232/
|
curl -s --request PROPFIND http://localhost:5232/
|
||||||
Access to the requested resource forbidden.
|
Access to the requested resource forbidden.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### With authentication on reverse proxy
|
||||||
|
|
||||||
|
auth: http_x_remote_user
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -H "X-Remote-User: USER" --request PROPFIND http://localhost:5232/
|
||||||
|
```
|
||||||
|
|
||||||
|
Should return in successful response of the particular USER content
|
||||||
|
|
||||||
### With authentication
|
### With authentication
|
||||||
|
|
||||||
#### Depth: 0
|
#### Depth: 0
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl -s --header 'Depth: 0' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
|
curl -s --header 'Depth: 0' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -119,7 +129,7 @@ Successful result:
|
||||||
|
|
||||||
#### Depth: 1
|
#### Depth: 1
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
|
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -134,7 +144,7 @@ Successful result:
|
||||||
|
|
||||||
(example)
|
(example)
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep -E "(^ <href>|displayname|C:calendar-description)"
|
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep -E "(^ <href>|displayname|C:calendar-description)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue