OVH DDNS update results in error

Issue #313 closed
Franciszek Kołtuniuk created an issue

Firmaware: “FreshTomato Firmware 2023.5 K26ARM USB AIO-64K-NOSMP”

FILE: /tmp/mdu0-ovh.txt 
<= D 
=> H GET /nic/update?system=dyndns&hostname=stokrotkowa.koltuniuk.eu&myip=78.8.50.39 HTTP/1.1
=> H Host: www.ovh.com
=> H Accept: */*
=> H User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/109.0
=> H Cache-Control: no-cache
=> H 
<= H HTTP/1.1 401 Unauthorized
<= H Date: Sun, 31 Dec 2023 14:07:05 GMT
<= H Content-Type: text/html; charset=iso-8859-1
<= H www-authenticate: Basic realm="Authenticated Users Only"
<= H x-iplb-request-id: 0A6E7E9F:1BDE_8D5FBAC8:01BB_65917589_1E8FED47:16722
<= H x-iplb-request-id: 894A789B:7CA8_C063418B:01BB_65917589_822C18:120E
<= H x-iplb-instance: 54397
<= H Cache-Control: no-cache
<= H Vary: Accept-Encoding
<= H X-CDN-Pop: rbx
<= H X-CDN-Pop-IP: 51.68.15.224/27
<= H X-Request-ID: 500662408
<= H X-Cacheable: Cacheable
<= H Connection: keep-alive
<= H Transfer-Encoding: chunked
<= H 
<= D 001bb
<= D <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><= D <html><head><= D <title>401 Unauthorized</title><= D </head><body><= D <h1>Unauthorized</h1><= D <p>This server could not verify that you<= D are authorized to access the document<= D requested.  Either you supplied the wrong<= D credentials (e.g., bad password), or your<= D browser doesn't understand how to supply<= D the credentials required.</p><= D <hr><= D <address>Apache Server at www.ovh.com Port 443</address><= D </body></html><= D 
<= D 0
<= D 

Unable to update the IP, the problem discovered since upgrade to the latest FreshTomato on “Asus RT-N18U”

The same issue observed when using on router command “curl” with option “--user ‘<user>:<password>' “

curl --user'<ddns-user>:<ddns-password' "https://www.ovh.com/nic/update?system=dyndns&hostname=<my.ddns.external.address>&myip=<11.22.33.44>"

but the curl succeeds if the authentication is via header “authorization: Basic ” with encoded user and password, example:

  curl -H 'authorization: Basic aaaa1111bbbb2222cccc3333dddd4444eeee5555ffff12==' "https://www.ovh.com/nic/update?system=dyndns&hostname=<my.ddns.external.address>&myip=<11.22.33.44>"

this looks like the curl is not providing to the server the user and password or is not correctly encoding user password

NOTE: The same curl command with option “--user” executed on PC succeeds

Comments (4)

  1. Log in to comment