Project

General

Profile

Actions

Bug #2489

closed

More than one secure dynamic dns update entry fails - due to malformed keyfile - and patch

Added by Dirk-Willem van Gulik over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Dynamic DNS
Target version:
Start date:
06/11/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

When configuring more than one DDNS service to inform (e.g. if you have multiple WAN uplinks) - the first one will work dandy - but any later ones will fail with a 'BADKEY'.

The reason is due to a small buglet in the script ./etc/inc/services.inc. Around line 892 the priv-key is concatenated to with the field data.

It prolly should be reset prior to each file. So changing:

                $fd = fopen("{$g['varetc_path']}/K{$i}{$ keyname}+157+00000.private", "w");
-                                 $privkey .= <<<EOD
+                                 $privkey = <<<EOD
                Private-key-format: v1.2

will solve things nicely.

Actions #1

Updated by Chris Buechler over 12 years ago

  • Target version set to 2.1
Actions #2

Updated by Ermal Luçi over 12 years ago

  • Status changed from New to Feedback

Seems the fix has been committed!

Actions #3

Updated by Dirk-Willem van Gulik over 12 years ago

Ermal Luçi wrote:

Seems the fix has been committed!

Ermail - what is the commit reference - I cannot find it in the tracker ?

Actions #4

Updated by Jim Pingle over 12 years ago

  • Status changed from Feedback to Resolved

See 8ec0a8bc and #2068.

Actions

Also available in: Atom PDF