diff options
author | Martin Fuchs <mfuchs@pfsense.org> | 2007-08-01 20:19:50 +0000 |
---|---|---|
committer | Martin Fuchs <mfuchs@pfsense.org> | 2007-08-01 20:19:50 +0000 |
commit | 6c23757bb8108dcf083e1c34eb11d39e4ef2da5e (patch) | |
tree | 3ddefb06501460e5cd8467b2466ef445006263ce /etc | |
parent | 9c55515a26ca3cce52e1bc92bf60f79004453b04 (diff) | |
download | pfsense-6c23757bb8108dcf083e1c34eb11d39e4ef2da5e.zip pfsense-6c23757bb8108dcf083e1c34eb11d39e4ef2da5e.tar.gz |
Add TFTP and LDAP server options to dhcpd
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 5b2158f..321e13f 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -113,6 +113,7 @@ function services_dhcpd_configure() { $dhcpdconf = <<<EOD option domain-name "{$syscfg['domain']}"; +option ldap-server code 95 = text; default-lease-time 7200; max-lease-time 86400; log-facility local7; @@ -275,6 +276,12 @@ EOD; if (is_array($dhcpifconf['ntpserver']) && $dhcpifconf['ntpserver'][0]) $dhcpdconf .= " option ntp-servers " . join(",", $dhcpifconf['ntpserver']) . ";\n"; + if (isset($dhcpifconf['tftp'])) + $dhcpdconf .= " option tftp-server-name \"{$dhcpifconf['tftp']}\";\n"; + + if (isset($dhcpifconf['ldap'])) + $dhcpdconf .= " option ldap-server \"{$dhcpifconf['ldap']}\";\n"; + if(isset($dhcpifconf['netboot'])) { if (($dhcpifconf['next-server'] <> "") && ($dhcpifconf['filename'] <> "")) { $dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n"; |