authorization failed badauth

Help
Yertman
2005-12-10
2014-10-21
  • Yertman
    Yertman
    2005-12-10

    Hello,

    I just setup ddclient on my SuSE 9 system and I am having trouble getting it to work. I have read throught the forum and tried some things but I have not seen anyone with exactly the same problem. ddclient seems to get my ip okay, but it can't seem to login to members.dyndns.org to update. I appreciate anyone taking a look at this. Here is my config file and the debug output of ddclient run with the ddclient.cache deleted:

    <config>
    #/etc/ddclient/ddclient.conf
    pid=/var/run/ddclient.pid   
    protocol=dyndns2
    use=web
    server=members.dyndns.org               
    login=My Userid           
    password=My Password
    dkdk.homelinux.com
    </config>

    <code>
    === opt ====
    opt{cache}                           : <undefined>
    opt{cmd}                             : <undefined>
    opt{cmd-skip}                        : <undefined>
    opt{daemon}                          : 0
    opt{debug}                           : 1
    opt{exec}                            : <undefined>
    opt{facility}                        : <undefined>
    opt{file}                            : <undefined>
    opt{force}                           : <undefined>
    opt{fw}                              : <undefined>
    opt{fw-login}                        : <undefined>
    opt{fw-password}                     : <undefined>
    opt{fw-skip}                         : <undefined>
    opt{geturl}                          : <undefined>
    opt{help}                            : <undefined>
    opt{host}                            : <undefined>
    opt{if}                              : <undefined>
    opt{if-skip}                         : <undefined>
    opt{ip}                              : <undefined>
    opt{login}                           : <undefined>
    opt{mail}                            : <undefined>
    opt{mail-failure}                    : <undefined>
    opt{max-interval}                    : 1296000
    opt{min-error-interval}              : 300
    opt{min-interval}                    : 30
    opt{options}                         : <undefined>
    opt{password}                        : <undefined>
    opt{pid}                             : <undefined>
    opt{priority}                        : <undefined>
    opt{protocol}                        : <undefined>
    opt{proxy}                           : <undefined>
    opt{query}                           : <undefined>
    opt{quiet}                           : 0
    opt{retry}                           : <undefined>
    opt{server}                          : <undefined>
    opt{syslog}                          : <undefined>
    opt{test}                            : <undefined>
    opt{timeout}                         : <undefined>
    opt{use}                             : <undefined>
    opt{verbose}                         : 1
    opt{web}                             : <undefined>
    opt{web-skip}                        : <undefined>
    === globals ====
    globals{daemon}                      : 60
    globals{debug}                       : 1
    globals{login}                       : MY USER NAME
    globals{password}                    : My Password
    globals{pid}                         : /var/run/ddclient.pid
    globals{protocol}                    : dyndns2
    globals{quiet}                       : 0
    globals{server}                      : members.dyndns.org
    globals{use}                         : web
    globals{verbose}                     : 1
    === config ====
    config{dkdk.homelinux.com}{atime}    : 0
    config{dkdk.homelinux.com}{backupmx} : 0
    config{dkdk.homelinux.com}{cacheable} : ARRAY(0x8400604)
    config{dkdk.homelinux.com}{custom}   : 0
    config{dkdk.homelinux.com}{host}     : dkdk.homelinux.com
    config{dkdk.homelinux.com}{ip}       : <undefined>
    config{dkdk.homelinux.com}{login}    : My Username
    config{dkdk.homelinux.com}{max-interval} : 1296000
    config{dkdk.homelinux.com}{min-error-interval} : 300
    config{dkdk.homelinux.com}{min-interval} : 30
    config{dkdk.homelinux.com}{mtime}    : 0
    config{dkdk.homelinux.com}{mx}       :
    config{dkdk.homelinux.com}{password} : My Password
    config{dkdk.homelinux.com}{protocol} : dyndns2
    config{dkdk.homelinux.com}{server}   : members.dyndns.org
    config{dkdk.homelinux.com}{static}   : 0
    config{dkdk.homelinux.com}{status}   :
    config{dkdk.homelinux.com}{warned-min-error-interval} : 0
    config{dkdk.homelinux.com}{warned-min-interval} : 0
    config{dkdk.homelinux.com}{wildcard} : 0
    config{dkdk.homelinux.com}{wtime}    : 30
    === cache ====
    CONNECT:  checkip.dyndns.org
    CONNECTED:
    SENDING:  GET / HTTP/1.0
    SENDING:   Host: checkip.dyndns.org
    SENDING:   User-Agent: ddclient/3.6.6
    SENDING:   Connection: close
    SENDING:  
    RECEIVE:  HTTP/1.0 200 OK

    RECEIVE:  Server: Cherokee/0.4.6

    RECEIVE:  Pragma: no-cache

    RECEIVE:  Cache-Control: no-cache

    RECEIVE:  Content-Type: text/html

    RECEIVE:  Connection: close

    RECEIVE: 

    RECEIVE:  <html><head><title>Current IP Check</title></head><body>Current IP Address: 12.214.15.184</body></html>

    DEBUG:    get_ip: using web, http://checkip.dyndns.org/ reports 12.214.15.184
    INFO:     forcing updating dkdk.homelinux.com because no cached entry exists.
    DEBUG:   
    DEBUG:     nic_dyndns2_update -------------------
    INFO:     setting IP address to 12.214.15.184 for dkdk.homelinux.com
    UPDATE:   updating dkdk.homelinux.com
    CONNECT:  members.dyndns.org
    CONNECTED:
    SENDING:  GET /nic/update?system=dyndns&hostname=dkdk.homelinux.com&myip=12.214.15.184 HTTP/1.0
    SENDING:   Host: members.dyndns.org
    SENDING:   Authorization: Basic eWVydG1pc3RlcmI6UmVhbGx5SGFyZDU1NQ==
    SENDING:   User-Agent: ddclient/3.6.6
    SENDING:   Connection: close
    SENDING:  
    RECEIVE:  HTTP/1.1 401 Authorization Required

    RECEIVE:  Date: Sat, 10 Dec 2005 02:27:07 GMT

    RECEIVE:  Server: Apache/1.3.33 (Unix) mod_perl/1.29

    RECEIVE:  WWW-Authenticate: Basic realm="DynDNS Members NIC"

    RECEIVE:  Content-Type: text/html; charset=iso-8859-1

    RECEIVE:  Connection: close

    RECEIVE: 

    RECEIVE:  badauth
    FAILED:   updating dkdk.homelinux.com: authorization failed (HTTP/1.1 401 Authorization Required
    FAILED:    Date: Sat, 10 Dec 2005 02:27:07 GMT
    FAILED:    Server: Apache/1.3.33 (Unix) mod_perl/1.29
    FAILED:    WWW-Authenticate: Basic realm="DynDNS Members NIC"
    FAILED:    Content-Type: text/html; charset=iso-8859-1
    FAILED:    Connection: close
    FAILED:   
    FAILED:    badauth)

    </code>

     
    • Yertman
      Yertman
      2005-12-10

      Hi All,

      I kept thinking I must have entered my password wrong or there must be something wrong with the program. Turns out I entered my user id incorrectly. 8)
      Have a great day.
      David

       
  • techie-one
    techie-one
    2011-02-11

    I am having the same problem that you mentioned.  You say that you entered the userid incorrectly.  After reading the documentation, it is not clear to me if each paramater needs to be defined on one line for if the login, password, hostname needs to be on a line that is continued. 

    Question:  What was the correct syntax that you used in your conf file?

     
  • wimpunk
    wimpunk
    2011-02-11

    Check sample-etc_ddclient.conf it has the correct syntax.

     
  • techie-one
    techie-one
    2011-02-11

    I have looked that the sample file and read documentation until I am blue in the face….  Could you look that my results? 

    See below - the conf file is listed at the bottom

    JUKEBOX:/etc/ddclient # ddclient -daemon=0 -debug -verbose -noquiet
    === opt ====
    opt{cache}                           : <undefined>
    opt{cmd}                             : <undefined>
    opt{cmd-skip}                        : <undefined>
    opt{daemon}                          : 0
    opt{debug}                           : 1
    opt{exec}                            : <undefined>
    opt{facility}                        : <undefined>
    opt{file}                            : <undefined>
    opt{force}                           : <undefined>
    opt{fw}                              : <undefined>
    opt{fw-login}                        : <undefined>
    opt{fw-password}                     : <undefined>
    opt{fw-skip}                         : <undefined>
    opt{geturl}                          : <undefined>
    opt{help}                            : <undefined>
    opt{host}                            : <undefined>
    opt{if}                              : <undefined>
    opt{if-skip}                         : <undefined>
    opt{ip}                              : <undefined>
    opt{login}                           : <undefined>
    opt{mail}                            : <undefined>
    opt{mail-failure}                    : <undefined>
    opt{max-interval}                    : 2160000
    opt{min-error-interval}              : 300
    opt{min-interval}                    : 30
    opt{options}                         : <undefined>
    opt{password}                        : <undefined>
    opt{pid}                             : <undefined>
    opt{postscript}                      : <undefined>
    opt{priority}                        : <undefined>
    opt{protocol}                        : <undefined>
    opt{proxy}                           : <undefined>
    opt{query}                           : <undefined>
    opt{quiet}                           : 0
    opt{retry}                           : <undefined>
    opt{server}                          : <undefined>
    opt{ssl}                             : <undefined>
    opt{syslog}                          : <undefined>
    opt{test}                            : <undefined>
    opt{timeout}                         : <undefined>
    opt{use}                             : <undefined>
    opt{verbose}                         : 1
    opt{web}                             : <undefined>
    opt{web-skip}                        : <undefined>
    === globals ====
    globals{daemon}                      : 60
    globals{debug}                       : 1
    globals{mail}                        : djeffs
    globals{mail-failure}                : djeffs
    globals{pid}                         : /var/run/ddclient.pid
    globals{quiet}                       : 0
    globals{syslog}                      : 1
    globals{use}                         : web
    globals{verbose}                     : 1
    globals{web}                         : checkip.dyndns.org/
    globals{web-skip}                    : IP Address:
    === config ====
    config{springfieldcorner.leaderguy.net}{atime} : 0
    config{springfieldcorner.leaderguy.net}{backupmx} : 0
    config{springfieldcorner.leaderguy.net}{cacheable} : ARRAY(0x85c954c)
    config{springfieldcorner.leaderguy.net}{cmd} : <undefined>
    config{springfieldcorner.leaderguy.net}{cmd-skip} :
    config{springfieldcorner.leaderguy.net}{custom} : 0
    config{springfieldcorner.leaderguy.net}{fw} :
    config{springfieldcorner.leaderguy.net}{fw-login} : <undefined>
    config{springfieldcorner.leaderguy.net}{fw-password} :
    config{springfieldcorner.leaderguy.net}{fw-skip} :
    config{springfieldcorner.leaderguy.net}{host} : springfieldcorner.leaderguy.net
    config{springfieldcorner.leaderguy.net}{if} : ppp0
    config{springfieldcorner.leaderguy.net}{if-skip} :
    config{springfieldcorner.leaderguy.net}{ip} : <undefined>
    config{springfieldcorner.leaderguy.net}{login} : djeffs@q.com
    config{springfieldcorner.leaderguy.net}{max-interval} : 2160000
    config{springfieldcorner.leaderguy.net}{min-error-interval} : 300
    config{springfieldcorner.leaderguy.net}{min-interval} : 30
    config{springfieldcorner.leaderguy.net}{mtime} : 0
    config{springfieldcorner.leaderguy.net}{mx} :
    config{springfieldcorner.leaderguy.net}{password} : dnspass
    config{springfieldcorner.leaderguy.net}{protocol} : dyndns2
    config{springfieldcorner.leaderguy.net}{server} : members.dyndns.org
    config{springfieldcorner.leaderguy.net}{static} : 0
    config{springfieldcorner.leaderguy.net}{status} :
    config{springfieldcorner.leaderguy.net}{use} : web
    config{springfieldcorner.leaderguy.net}{warned-min-error-interval} : 0
    config{springfieldcorner.leaderguy.net}{warned-min-interval} : 0
    config{springfieldcorner.leaderguy.net}{web} : checkip.dyndns.org/
    config{springfieldcorner.leaderguy.net}{web-skip} : IP Address:
    config{springfieldcorner.leaderguy.net}{wildcard} : 0
    config{springfieldcorner.leaderguy.net}{wtime} : 30
    === cache ====
    DEBUG:    proxy  =
    DEBUG:    url    = checkip.dyndns.org/
    DEBUG:    server = checkip.dyndns.org
    CONNECT:  checkip.dyndns.org
    CONNECTED:  using HTTP
    SENDING:  GET / HTTP/1.0
    SENDING:   Host: checkip.dyndns.org
    SENDING:   User-Agent: ddclient/3.8.0
    SENDING:   Connection: close
    SENDING:  
    RECEIVE:  HTTP/1.1 200 OK
    RECEIVE:  Content-Type: text/html
    RECEIVE:  Server: DynDNS-CheckIP/1.0
    RECEIVE:  Connection: close
    RECEIVE:  Cache-Control: no-cache
    RECEIVE:  Pragma: no-cache
    RECEIVE:  Content-Length: 105
    RECEIVE: 
    RECEIVE:  <html><head><title>Current IP Check</title></head><body>Current IP Address: 72.214.115.81</body></html>
    DEBUG:    get_ip: using web, checkip.dyndns.org/ reports 72.214.115.81
    INFO:     forcing updating springfieldcorner.leaderguy.net because no cached entry exists.
    DEBUG:   
    DEBUG:     nic_dyndns2_update -------------
    INFO:     setting IP address to 72.214.115.81 for springfieldcorner.leaderguy.net
    UPDATE:   updating springfieldcorner.leaderguy.net
    DEBUG:    proxy  =
    DEBUG:    url    = http://members.dyndns.org/nic/update?system=dyndns&hostname=springfieldcorner.leaderguy.net&myip=72.214.115.81
    DEBUG:    server = members.dyndns.org
    CONNECT:  members.dyndns.org
    CONNECTED:  using HTTP
    SENDING:  GET /nic/update?system=dyndns&hostname=springfieldcorner.leaderguy.net&myip=72.214.115.81 HTTP/1.0
    SENDING:   Host: members.dyndns.org
    SENDING:   Authorization: Basic ZGplZmZzQHEuY29tOk15ZG5zcGFzcw==
    SENDING:   User-Agent: ddclient/3.8.0
    SENDING:   Connection: close
    SENDING:  
    RECEIVE:  HTTP/1.1 200 OK
    RECEIVE:  Date: Fri, 11 Feb 2011 20:15:05 GMT
    RECEIVE:  Server: Apache
    RECEIVE:  Content-Type: text/plain
    RECEIVE:  Connection: close
    RECEIVE: 
    RECEIVE:  badauth
    FAILED:   updating springfieldcorner.leaderguy.net: badauth: Bad authorization (username or password)

    JUKEBOX:/etc/ddclient # more /etc/ddclient/ddclient.conf
    ######################################################################
    ##
    ######################################################################
    daemon=300                              # check every 300 seconds
    syslog=yes                              # log update msgs to syslog
    mail=djeffs                             # mail all msgs to root
    mail-failure=djeffs                     # mail failed update msgs to root
    pid=/var/run/ddclient.pid               # record PID in file.
    #ssl=yes                                # use ssl-support.  Works with
                                            # ssl-library
    #
    ## To obtain an IP address from Web status page (using the proxy if defined)
    use=web, web=checkip.dyndns.org/, web-skip='IP Address:' # found after IP Address
    #

    ##
    ## dyndns.org dynamic addresses
    ##
    ## (supports variables: wildcard,mx,backupmx)
    ##
    protocol=dyndns2                \
    login=djeffs@q.com,                    \
    password=dnspass                      \
    springfieldcorner.leaderguy.net

     
  • EarlW
    EarlW
    2014-10-21

    try login without the @q.com

    I had the same error.
    I logged into the dyn.com web page using my name@server.com and looked at the username they had for me. https://account.dyn.com/services/

    I changed the ddclient.conf to use only the username, not my email address.

    On Ubuntu 14.04 LTS with ddclient:all 3.8.1-1ubuntu2