Revert "gandi: Changed authorization to personal access token"

This reverts commit a57cb3b9ff.

See https://github.com/ddclient/ddclient/issues/602 for more info.
This commit is contained in:
Lenard Hess 2024-03-02 11:57:59 +01:00
parent 9c3fc230ba
commit 9b7714c39c
2 changed files with 7 additions and 6 deletions

View file

@ -199,7 +199,7 @@ ssl=yes # use ssl-support. Works with
## Single host update
# protocol=gandi
# zone=example.com
# password=my-gandi-access-token
# password=my-gandi-api-key
# ttl=10800 # optional
# myhost.example.com

View file

@ -7455,8 +7455,9 @@ Description of Gandi's LiveDNS API can be found at:
https://api.gandi.net/docs/livedns/
Available configuration variables:
* password: The Gandi access token. If you dont have one yet, you can generate
your production access token from the Gandi Admin application. Required.
* password: The Gandi API key. If you dont have one yet, you can generate
your production API key from the API Key Page (in the Security section).
Required.
* zone: The DNS zone to be updated. Required.
* ttl: The time-to-live value associated with the updated DNS record.
Optional; uses Gandi's default (10800) if unset.
@ -7465,13 +7466,13 @@ Example ${program}.conf file entries:
## Single host update.
protocol=gandi
zone=example.com
password=my-gandi-access-token
password=my-gandi-api-key
host.example.com
## Multiple host update.
protocol=gandi
zone=example.com
password=my-gandi-access-token
password=my-gandi-api-key
ttl=3600 # optional
hosta.example.com,hostb.sub.example.com
EoEXAMPLE
@ -7495,7 +7496,7 @@ sub nic_gandi_update {
my $headers;
$headers = "Content-Type: application/json\n";
$headers .= "Authorization: Bearer $config{$h}{'password'}\n";
$headers .= "Authorization: Apikey $config{$h}{'password'}\n";