Project

General

Profile

Actions

Bug #8469

closed

DHCP Server configuration page errantly expands Dynamic DNS advanced parameters even when none are configured

Added by Michael Alden over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
DHCP (IPv4)
Target version:
Start date:
04/18/2018
Due date:
% Done:

0%

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

Description

When saving DHCP Server configuration settings, the Dynamic DNS Key algorithm drop down box (under advanced Dynamic DNS settings) is automatically populated with the default value of HMAC-MD5 (legacy default). This happens even if the Display Advanced button is not clicked (and the menu expanded). This populates the config.xml ddnsdomainkeyalgorithm element, /pfsense/dhcpd/lan/ddnsdomainkeyalgorithm, with the value "hmac-md5".

The /usr/local/www/services_dhcp.php file includes conditions for displaying the Dynamic DNS advanced parameters; if the ddnsdomainkeyalgorithm element is not empty the advanced parameters are displayed.

I'm creating a pull request to implement this change; specifically, this:
Line 1558: empty($pconfig['ddnsdomainkeyalgorithm']) &&

Should be changed to this:
Line 1558: (empty($pconfig['ddnsdomainkeyalgorithm']) || ($pconfig['ddnsdomainkeyalgorithm'] == "hmac-md5")) &&

The OR condition allows for the default value without displaying the advanced parameters.


Files

dhcp-config-section-testing-8469.log (328 Bytes) dhcp-config-section-testing-8469.log after clicking Save at Services > DHCP Server on a stock config Anonymous, 07/05/2018 03:23 PM
dhcp-log-testing-8469.log (3.38 KB) dhcp-log-testing-8469.log relevant DHCP log after trying to start DHCP Server Anonymous, 07/05/2018 03:23 PM
Actions

Also available in: Atom PDF