Bad authorization (username or password) Bad authorization (userna...

Topic: Bad authorization (username or password)

Post Bad authorization (username or password)
by GrahamLeach on Thursday, November 3, 2022

No matter what I do, I am getting this error in /var/log/syslog

updating bogomips.webdirect.org: badauth: Bad authorization (username or password)

Here's my /etc/ddclient/ddclient.conf file:

# ----------------------------------------------------------------------------
#
# @file
# ddclient configuration file
#
# @filename
# /etc/ddclient/ddclient.conf
#
# @author
# Graham Leach (GL)
#
# @created
# 2022-11-04
#
# ----------------------------------------------------------------------------

# Execute every n seconds
# ddclient wants at least a 5 minute delay (300) between attempts
daemon=360

# Log messages to /var/log/syslog?
syslog=yes

# User account to mail messages to:
mail=root

# User account to mail failed update messages to:
mail-failure=root

# Which file to record the ddclient Process ID (PID) in:
pid=/var/run/ddclient.pid

# Which server to get the IP address from:
use=web, web=checkip.dynu.com, web-skip='Current IP Address: '

# Which server to send IP address updates to:
server=api.dynu.com

# Which protocol to use (dyndns1, dyndns2*):
protocol=dyndns2

# Login username or email:
login={email_address}

# Login password (cleartext / MD5 / SHA256 hash):
password={MD5_hash}

# List of FQDN to register IP address updates against
# 1 per line)
bogomips.webdirect.org
#x.y.z

Reply with quote | Report
Post Re: Bad authorization (username or password)
by bdavids on Friday, November 4, 2022

GrahamLeach wrote:No matter what I do, I am getting this error in /var/log/syslog

updating bogomips.webdirect.org: badauth: Bad authorization (username or password)

Here's my /etc/ddclient/ddclient.conf file:

# ----------------------------------------------------------------------------
#
# @file
# ddclient configuration file
#
# @filename
# /etc/ddclient/ddclient.conf
#
# @author
# Graham Leach (GL)
#
# @created
# 2022-11-04
#
# ----------------------------------------------------------------------------

# Execute every n seconds
# ddclient wants at least a 5 minute delay (300) between attempts
daemon=360

# Log messages to /var/log/syslog?
syslog=yes

# User account to mail messages to:
mail=root

# User account to mail failed update messages to:
mail-failure=root

# Which file to record the ddclient Process ID (PID) in:
pid=/var/run/ddclient.pid

# Which server to get the IP address from:
use=web, web=checkip.dynu.com, web-skip='Current IP Address: '

# Which server to send IP address updates to:
server=api.dynu.com

# Which protocol to use (dyndns1, dyndns2*):
protocol=dyndns2

# Login username or email:
login={email_address}

# Login password (cleartext / MD5 / SHA256 hash):
password={MD5_hash}

# List of FQDN to register IP address updates against
# 1 per line)
bogomips.webdirect.org
#x.y.z
Dynu does not have a webdirect.org domain extension. Is your domain name bogomips.webREdirect.org? Also it is better that you use your username instead of email address in the 'login' field. The username can be found in your account at https://www.dynu.com/ControlPanel/MyAccount.

Reply with quote | Report
Post Re: Re: Bad authorization (username or password)
by grahamleach on Friday, November 4, 2022

bdavids wrote:
GrahamLeach wrote:No matter what I do, I am getting this error in /var/log/syslog

updating bogomips.webdirect.org: badauth: Bad authorization (username or password)

Here's my /etc/ddclient/ddclient.conf file:

# ----------------------------------------------------------------------------
#
# @file
# ddclient configuration file
#
# @filename
# /etc/ddclient/ddclient.conf
#
# @author
# Graham Leach (GL)
#
# @created
# 2022-11-04
#
# ----------------------------------------------------------------------------

# Execute every n seconds
# ddclient wants at least a 5 minute delay (300) between attempts
daemon=360

# Log messages to /var/log/syslog?
syslog=yes

# User account to mail messages to:
mail=root

# User account to mail failed update messages to:
mail-failure=root

# Which file to record the ddclient Process ID (PID) in:
pid=/var/run/ddclient.pid

# Which server to get the IP address from:
use=web, web=checkip.dynu.com, web-skip='Current IP Address: '

# Which server to send IP address updates to:
server=api.dynu.com

# Which protocol to use (dyndns1, dyndns2*):
protocol=dyndns2

# Login username or email:
login={email_address}

# Login password (cleartext / MD5 / SHA256 hash):
password={MD5_hash}

# List of FQDN to register IP address updates against
# 1 per line)
bogomips.webdirect.org
#x.y.z
Dynu does not have a webdirect.org domain extension. Is your domain name bogomips.webREdirect.org? Also it is better that you use your username instead of email address in the 'login' field. The username can be found in your account at https://www.dynu.com/ControlPanel/MyAccount.
YES - YES - YES

I got the spelling of the redirected domain wrong!

I must have looked at it A HUNDRED TIMES and not noticed! Wow!

It's amazing what a fresh pair of eyes can see!

THANK YOU

RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Fri, 04 Nov 2022 7:21:1 GMT
RECEIVE: Server: Dynu Web Server
RECEIVE: X-Powered-By: Dynu Dynamic DNS Service
RECEIVE: Content-Length: 16
RECEIVE: Content-Type: text/html; charset=UTF-8
RECEIVE:
RECEIVE: good 14.0.169.40
SUCCESS: updating bogomips.webredirect.org: good: IP address set to 14.0.169.40


Reply with quote | Report
Post Re: Bad authorization (username or password)
by grahamleach on Saturday, November 5, 2022

It would be great if the error message could be ==> BAD DOMAIN

and not ==> BAD USERNAME/PASSWORD

That might really help people focus on where the typo(s) may be. I say this because I spent quite a bit of time messing around with Username/Password combinations when a more descriptive/accurate error message would have helped a lot in terms of focusing my attention where it needed to be, and I notice that I am not the only person who did this.

Please consider fixing your error messaging

Reply with quote | Report
Saturday, September 30, 2023 2:01 AM
Loading...