Getting "BADAUTH" on Linux Getting "BADAUTH" on Linu...

Topic: Getting "BADAUTH" on Linux

Post Getting "BADAUTH" on Linux
by erolwizard on Thursday, June 15, 2017

I have a domain named: mydomain.com in dynu.com and on on my linux box I tried to set up a dynamic dns and I am getting bad authorization.

Here is my conf:

# ddclient configuration for Dynu
#
# /etc/ddclient/ddclient.conf
daemon=60 # Check every 60 seconds.
syslog=yes # Log update msgs to syslog.
mail=root # Mail all msgs to root.
mail-failure=root # Mail failed update msgs to root.
pid=/var/run/ddclient.pid # Record PID in file.
use=web, web=checkip.dynu.com/, web-skip='IP Address' # Get ip from server.
server=api.dynu.com # IP update server.
protocol=dyndns2
login=myusername
password=mypassword
mydomain.com


And the ddclient update request:

WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
CONNECT: checkip.dynu.com
CONNECTED: using HTTP
SENDING: GET / HTTP/1.0
SENDING: Host: checkip.dynu.com
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Fri, 16 Jun 2017 07:04:31 GMT
RECEIVE: Server: Apache/2.2.15 (CentOS)
RECEIVE: X-Powered-By: PHP/5.3.3
RECEIVE: Content-Length: 34
RECEIVE: Connection: close
RECEIVE: Content-Type: text/html; charset=UTF-8
RECEIVE:
RECEIVE: Current IP Address: 213.153.152.38
INFO: setting IP address to 213.153.152.38 for mydomain.com
UPDATE: updating mydomain.com
CONNECT: api.dynu.com
CONNECTED: using HTTP
SENDING: GET /nic/update?system=dyndns&hostname=mydomain.com&myip=213.153.152.38 HTTP/1.0
SENDING: Host: api.dynu.com
SENDING: Authorization: Basic *****
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Thu, 15 Jun 2017 23:44:20 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 mydomain.com: badauth: Bad authorization (username or password)
[root@centos ~]#


Reply with quote | Report
Post Re: Getting "BADAUTH" on Linux
by timothytw on Friday, June 16, 2017

Have you tried enclosing the password in single quotes?

Reply with quote | Report
Post Re: Re: Getting "BADAUTH" on Linux
by blackbarret on Monday, June 19, 2017

timothytw wrote:Have you tried enclosing the password in single quotes?
Confirmed, the ddclient password field expects single quotations and the domain as last line.

Also i like to note, the config of the ddclient does not accept spaces or tabs, it requires to be LF's (not windows CRLF) and continuation of
field=value


- B

Reply with quote | Report
Post Re: Re: Re: Getting "BADAUTH" on Linux
by bdavids on Friday, June 23, 2017

blackbarret wrote:
timothytw wrote:Have you tried enclosing the password in single quotes?
Confirmed, the ddclient password field expects single quotations and the domain as last line.

Also i like to note, the config of the ddclient does not accept spaces or tabs, it requires to be LF's (not windows CRLF) and continuation of
field=value


- B
Thanks! This helped!

Reply with quote | Report
Friday, March 29, 2024 8:58 AM
Loading...