diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 5b2158f0fb..321e13f0c3 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -113,6 +113,7 @@ function services_dhcpd_configure() { $dhcpdconf = << "") && ($dhcpifconf['filename'] <> "")) { $dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n"; diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 0f09b4eda9..eac3ba70ec 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -73,6 +73,8 @@ $pconfig['staticarp'] = isset($config['dhcpd'][$if]['staticarp']); $pconfig['ddnsdomain'] = $config['dhcpd'][$if]['ddnsdomain']; $pconfig['ddnsupdate'] = isset($config['dhcpd'][$if]['ddnsupdate']); list($pconfig['ntp1'],$pconfig['ntp2']) = $config['dhcpd'][$if]['ntpserver']; +$pconfig['tftp'] = $config['dhcpd'][$if]['tftp']; +$pconfig['ldap'] = $config['dhcpd'][$if]['ldap']; $pconfig['netboot'] = isset($config['dhcpd'][$if]['netboot']); $pconfig['nextserver'] = $config['dhcpd'][$if]['next-server']; $pconfig['filename'] = $config['dhcpd'][$if]['filename']; @@ -202,6 +204,8 @@ if ($_POST) { if ($_POST['ntp2']) $config['dhcpd'][$if]['ntpserver'][] = $_POST['ntp2']; + $config['dhcpd'][$if]['tftp'] = $_POST['tftp']; + $config['dhcpd'][$if]['ldap'] = $_POST['ldap']; $config['dhcpd'][$if]['netboot'] = ($_POST['netboot']) ? true : false; $config['dhcpd'][$if]['next-server'] = $_POST['nextserver']; $config['dhcpd'][$if]['filename'] = $_POST['filename']; @@ -278,6 +282,8 @@ function enable_change(enable_over) { document.iform.ddnsupdate.disabled = endis; document.iform.ntp1.disabled = endis; document.iform.ntp2.disabled = endis; + document.iform.tftp.disabled = endis; + document.iform.ldap.disabled = endis; document.iform.netboot.disabled = endis; document.iform.nextserver.disabled = endis; document.iform.filename.disabled = endis; @@ -296,6 +302,18 @@ function show_ntp_config() { aodiv.style.display = "block"; } +function show_tftp_config() { + document.getElementById("showtftpbox").innerHTML=''; + aodiv = document.getElementById('showtftp'); + aodiv.style.display = "block"; +} + +function show_ldap_config() { + document.getElementById("showldapbox").innerHTML=''; + aodiv = document.getElementById('showldap'); + aodiv.style.display = "block"; +} + function show_netboot_config() { document.getElementById("shownetbootbox").innerHTML=''; aodiv = document.getElementById('shownetboot'); @@ -498,6 +516,30 @@ function show_netboot_config() { + + TFTP server + +
+ - Show TFTP configuration +
+ + + + + LDAP URI + +
+ - Show LDAP configuration +
+ + + Enable Network booting