'badauth' error when using ddclient to update 'badauth' error when usin...

Topic: 'badauth' error when using ddclient to update

Post 'badauth' error when using ddclient to update
by mjnewton on 01 May 2016

Hi,

I really want to become a fully-fledged dynu.com member as everything I've seen so far seems perfect - apart from the fact that I've failed at the first hurdle!

Having set up a test domain (sub.newtonnet.co.uk), all delegated properly to ns[1-5].dynu.com and with a manually-configured resource record of test.sub.newtonnet.co.uk all resolving I cannot seem to update it with ddclient:

# ddclient -foreground -force
FAILED: updating test.sub.newtonnet.co.uk: badauth: Bad authorization (username or password)


Here is my config (credentials obfuscated):

# cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

protocol=dyndns2
use=if, if=eno1
server=api.dynu.com
login=<myusnername>
password=<mypassword>
test.sub.newtonnet.co.uk


And here is the verbose output of the command:

# ddclient -foreground -force -verbose
INFO: forcing update of test.sub.newtonnet.co.uk.
INFO: setting IP address to 192.168.1.20 for test.sub.newtonnet.co.uk
UPDATE: updating test.sub.newtonnet.co.uk
CONNECT: api.dynu.com
CONNECTED: using HTTP
SENDING: GET /nic/update?system=dyndns&hostname=test.sub.newtonnet.co.uk&myip=192.168.1.20 HTTP/1.0
SENDING: Host: api.dynu.com
SENDING: Authorization: Basic <base64 encoding of <myusername>:<mypassword>>
SENDING: User-Agent: ddclient/3.8.2
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Sun, 01 May 2016 5:3:39 GMT
RECEIVE: Server: Dynu Web Server
RECEIVE: X-Powered-By: Dynu Dynamic DNS Service
RECEIVE: Content-Length: 7
RECEIVE: Content-Type: text/html
RECEIVE:
RECEIVE: badauth
FAILED: updating test.sub.newtonnet.co.uk: badauth: Bad authorization (username or password)


I have confirmed that the username and password are correct (have also tried with/without a separate update password) and that the base64 encoding of <myusername>:<mypassword> being sent is also correct.

Any ideas? It is very frustrating to have fallen at the first hurdle as I really want to succeed with this!

Regards,

Mathew

Reply with quote | Report
Post Re: 'badauth' error when using ddclient to update
by timothytw on 04 May 2016

If you have signed up dynamic DNS service for newtonnet.co.uk and added test as alias in the 'Alias' section, you should be using the following code:
 # cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

protocol=dyndns2
use=if, if=eno1
server=api.dynu.com
login=
password=
sub.newtonnet.co.uk&alias=test

For more information, you can refer to the DDClient config.

Reply with quote | Report
28 December 2024 12:16
Loading...