Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Authentication section directly below Using PADD as it impacts both usage scenarios #424

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ PADD (formerly Chronometer2) is a more expansive version of the original chronom

## Using PADD

### Authentication

Pi-hole v6 uses a completely new API with a new authentication mechanism

If you run PADD on the same machine as Pi-hole, it's possible to bypass authentication when your local user is member of the `pihole` group (specifically, if you can access `/etc/pihole/cli_pw).
For details see [https://github.com/pi-hole/FTL/pull/1999](https://github.com/pi-hole/FTL/pull/1999)

If this is not the case, PADD will ask you for your password (`--secret <password>`) and (if configured) your two factor authentication token (`--2fa <2fa>`).

### PADD on Pi-hole machine

- Just run
Expand All @@ -42,29 +51,14 @@ PADD (formerly Chronometer2) is a more expansive version of the original chronom

With PADD v4.0.0 and Pi-hole v6 it is also possible to run PADD from a machine that is not running Pi-hole

```bash
./padd.sh --server <DOMAIN|IP>
```

### Authentication

Pi-hole v6 uses a completely new API with a new authentication mechanism

If you run PADD on the same machine as Pi-hole, it's possible to bypass authentication when your local user is member of the `pihole` group (specifically, if you can access `/etc/pihole/cli_pw).
For details see [https://github.com/pi-hole/FTL/pull/1999](https://github.com/pi-hole/FTL/pull/1999)

If this is not the case, PADD will ask you for your password and (if configured) your two factor authentication token. You can also pass those as arguments

- password only

```bash
./padd.sh --secret <password>
./padd.sh --server <DOMAIN|IP> --secret <password>
```

- with 2FA enabled

```bash
./padd.sh --secret <password> --2fa <2fa>
./padd.sh --server <DOMAIN|IP> --secret <password> --2fa <2fa>
```

### PADD with Pi-hole in a Docker Container
Expand Down