Getting "BADAUTH" on Linu...
Getting "BADAUTH" on Linux
- 主页
- 后台控制中心
- Community Forum
- Services
- Dynamic DNS Service
- Getting "BADAUTH" on Linux
- Community Forum
- Getting "BADAUTH" on Linux
Topic: Getting "BADAUTH" on Linux
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 ~]#
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
timothytw wrote:Have you tried enclosing the password in single quotes?
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
blackbarret wrote:Confirmed, the ddclient password field expects single quotations and the domain as last line.timothytw wrote:Have you tried enclosing the password in single quotes?
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 offield=value
- B
Reply with quote | Report
Author | Topic: Getting "BADAUTH" on Linux |
---|---|
erolwizard Joined: 2017/1/15 |
![]() 2017年6月15日 23:49
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 ~]# |
timothytw Joined: 2002/5/2 |
![]() 2017年6月16日 11:37
Have you tried enclosing the password in single quotes?
|
blackbarret Joined: 2017/4/26 |
![]() 2017年6月19日 6:00
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 |
bdavids Joined: 2017/6/23 |
![]() 2017年6月23日 13:39
|

2025年5月4日 15:55