]>
Commit | Line | Data |
---|---|---|
8668864b TO |
1 | --- lms/bin/lms-makedhcpconf.orig 2004-10-26 08:13:40.000000000 +0200 |
2 | +++ lms/bin/lms-makedhcpconf 2004-10-26 08:19:44.000000000 +0200 | |
3 | @@ -137,6 +137,7 @@ | |
4 | my $cperm = $ini->val('dhcp','config_permission') || '0600'; | |
5 | my $olddhcpd = $ini->val('dhcp','ignore_ddns') || ''; | |
6 | my $logfacility = $ini->val('dhcp','log_facility') || ''; | |
7 | +my $authoritative = $ini->val('dhcp','authoritative') || 1; | |
8 | ||
9 | my $dbhost = $ini->val('database', 'host') || 'localhost'; | |
10 | my $dbuser = $ini->val('database', 'user') || 'root'; | |
11 | @@ -226,6 +227,14 @@ | |
12 | print DHCPDCONF "\tsubnet $row->{'address'} netmask $row->{'mask'} { # Network: $key (ID:$row->{'id'})\n"; | |
13 | print DHCPDCONF "\t\tdefault-lease-time $ndeflease;\n"; | |
14 | print DHCPDCONF "\t\tmax-lease-time $nmaxlease;\n"; | |
15 | + if($authoritative) | |
16 | + { | |
17 | + print DHCPDCONF "\t\tauthoritative;\n"; | |
18 | + } | |
19 | + else | |
20 | + { | |
21 | + print DHCPDCONF "\t\tnot authoritative;\n"; | |
22 | + } | |
23 | if($row->{'dhcpstart'} && $row->{'dhcpend'}) | |
24 | { | |
25 | print DHCPDCONF "\t\trange $row->{'dhcpstart'} $row->{'dhcpend'};\n"; | |
26 |