diff --git a/src/etc/inc/plugins.inc.d/dhcpd.inc b/src/etc/inc/plugins.inc.d/dhcpd.inc index abc5ab737..4a8ac6bbd 100644 --- a/src/etc/inc/plugins.inc.d/dhcpd.inc +++ b/src/etc/inc/plugins.inc.d/dhcpd.inc @@ -840,6 +840,10 @@ EOPP; $dhcpdconf .= " deny unknown-clients;\n"; } + if (isset($poolconf['ignoreuids'])) { + $dhcpdconf .= " ignore-client-uids true;\n"; + } + if ( !empty($poolconf['gateway']) && $poolconf['gateway'] != "none" && (empty($dhcpifconf['gateway']) || $poolconf['gateway'] != $dhcpifconf['gateway']) diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php index 13c94d69d..c231cb0ba 100644 --- a/src/www/services_dhcp.php +++ b/src/www/services_dhcp.php @@ -94,7 +94,7 @@ function reconfigure_dhcpd() } $config_copy_fieldsnames = array('enable', 'staticarp', 'failover_peerip', 'failover_split', 'dhcpleaseinlocaltime','descr', - 'defaultleasetime', 'maxleasetime', 'gateway', 'domain', 'domainsearchlist', 'denyunknown', 'ddnsdomain', + 'defaultleasetime', 'maxleasetime', 'gateway', 'domain', 'domainsearchlist', 'denyunknown','ignoreuids', 'ddnsdomain', 'ddnsdomainprimary', 'ddnsdomainkeyname', 'ddnsdomainkey', 'ddnsdomainalgorithm', 'ddnsupdate', 'mac_allow', 'mac_deny', 'tftp', 'bootfilename', 'ldap', 'netboot', 'nextserver', 'filename', 'filename32', 'filename64', 'rootpath', 'netmask', 'numberoptions', 'interface_mtu', 'wpad', 'omapi', 'omapiport', 'omapialgorithm', 'omapikey', 'minsecs'); @@ -142,6 +142,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['wpad'] = isset($dhcpdconf['wpad']); $pconfig['staticarp'] = isset($dhcpdconf['staticarp']); $pconfig['denyunknown'] = isset($dhcpdconf['denyunknown']); + $pconfig['ignoreuids'] = isset($dhcpdconf['ignoreuids']); $pconfig['ddnsupdate'] = isset($dhcpdconf['ddnsupdate']); $pconfig['netboot'] = isset($dhcpdconf['netboot']); @@ -397,6 +398,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $dhcpdconf['enable'] = !empty($dhcpdconf['enable']); $dhcpdconf['staticarp'] = !empty($dhcpdconf['staticarp']); $dhcpdconf['denyunknown'] = !empty($dhcpdconf['denyunknown']); + $dhcpdconf['ignoreuids'] = !empty($dhcpdconf['ignoreuids']); $dhcpdconf['ddnsupdate'] = !empty($dhcpdconf['ddnsupdate']); $dhcpdconf['netboot'] = !empty($dhcpdconf['netboot']); @@ -678,6 +680,15 @@ include("head.inc"); + + + + /> + + +