#18165: new ddns-scripts fail on [HTTPAUTH]
------------------------------------------+--------------------------------
 Reporter:  olmari                        |      Owner:  developers
     Type:  defect                        |     Status:  new
 Priority:  normal                        |  Milestone:  Chaos Calmer
Component:  packages                      |  (trunk)
 Keywords:  ddns, ddns-scripts, httpauth  |    Version:  Trunk
------------------------------------------+--------------------------------
 The new ddns-scripts fails with [HTTPAUTH] that has been part of old ddns-
 scripts. This becomes seen at dy.fi ddns provider that does use [HTTPAUTH]
 as their credentials method... I have long ago gave patch for dy.fi
 provider for /usr/lib/ddns/services file, and also description for
 [HTTPAUTH] on the same file (functionality existed already without me, no
 description tough existed...), but this never got integrated... Patch for
 that here: http://patchwork.openwrt.org/patch/3467/


 /usr/lib/ddns/services:
 {{{
 # dy.fi Dynamic DNS for finnish users
 "dy.fi"      "http://[HTTPAUTH]@www.dy.fi/nic/update?hostname=[DOMAIN]";
 }}}


 Clip from new ddns-script verbose log:
 {{{
 *** START LOOP =: 2014-10-19 04:37
  ******* DETECT =: Local IP
        local ip =: '94.22.113.83' detected on network 'wan'
  ******* UPDATE =: LOCAL: '94.22.113.83' <> REGISTERED: ''
   transfer prog =: /usr/bin/wget -O - -Y off -q
 'http://[HTTPAUTH]@www.dy.fi/nic/update?hostname=olmari.dy.fi' 2>/dev/null

 !!!!!!!!! ERROR =: BusyBox Wget Error '1'
 Connecting to www.dy.fi (85.188.1.23:80)
 wget: server returned error: HTTP/1.1 401 Unauthorized
 }}}

 It is quite clearly seen ddns-scripts isn't parsing [HTTPAUTH] correctly,
 making username and password as "http://username:password@url"; for wget...
 I'd so hope this would get fixed :)

--
Ticket URL: <https://dev.openwrt.org/ticket/18165>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to