Browse Source

Added new parameter

Added pdns-api-password and http-auth parameter to Api-Init
tags/v1.2.0
lowEagle 6 years ago
parent
commit
f6b8ff6de4
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      certbot_pdns/PdnsApiAuthenticator.py

+ 3
- 0
certbot_pdns/PdnsApiAuthenticator.py View File

58
             config = json.load(f)
58
             config = json.load(f)
59
         self.api.set_api_key(config["api-key"])
59
         self.api.set_api_key(config["api-key"])
60
         self.api.set_base_url(config["base-url"])
60
         self.api.set_base_url(config["base-url"])
61
+        self.api.set_api_pass(config["api-pass"])
62
+        self.api.set_http_auth_user(config["http-auth-user"])
63
+        self.api.set_http_auth_pass(config["http-auth-pas"])
61
         self.axfr_time = config["axfr-time"]
64
         self.axfr_time = config["axfr-time"]
62
         self.zones = self.api.list_zones()
65
         self.zones = self.api.list_zones()
63
         # print(self.zones)
66
         # print(self.zones)

Loading…
Cancel
Save