From: Robert Lowe (robert.h.lowe@lawrence.edu)
Date: Mon Aug 19 2002 - 15:03:19 CDT
Hi!
I've sent a new CIDR kit to Peter Valian for posting in the contrib section.
All of the patches/fixes/additional features now extend well beyond CIDR.
It's been in limited production testing here, but the usual caveats apply...
-Robert
New Notes:
** register.cgi
. Remove spaces from username and implement better matching of
usernames during registration (problems reported by Dan Schmiedt
of Clemson, 8/19/02).
. Better support of DDNS (see below)
** variables.pl
. Added $DDNS_USE_HOST_DECL
This is only of importance if you use DDNS updates for registered
clients. If you do not dictate the use of DDNS updates in your
dhcpd.conf file, this will have no effect. Possible values:
0 = default behaviour (use client-supplied hostname in updates)
1 = use the host declaration name in updating A and PTR records,
e.g. username-NN. An extra option will be written to the
entries in dhcpd.conf.
Note: I added this because I didn't want to preload DNS with
resource records, but I didn't want users to dictate the
hostnames, since this invariably means illegal characters,
and some objectionable names.
** admin.cgi
. Cosmetic fixes
. find_lease() routine:
1. Re-wrote lease parsing to eliminate the need for an extra file,
i.e. dhcpd.leases.tmp.
2. Leases are reported in IP address order.
3. IP addresses will an active lease are flagged.
4. Total number of leases are reported.
5. Number of active leases, of those found, is reported.
6. Can search on lease state, e.g. free or active.
***************************
Possible future enhancements:
1. Allow search results from "Find User", "Find MAC", or "Lease Manager"
to be sorted by any of the available fields. This might not be easily
accomplished without additional overhead.
2. Include active leases per subnet in the subnet overview graph.
This involves parsing the leases file, something that is not currently
not done in this routine.
****************************
Notes from the previous kit...
Noteable changes:
** Subnets
. A replacement for subnet.dat, stored in /etc/netreg, contains four
colon separated fields:
1. Subnet/mask length for registered clients
2. Location
3. Number of IP addresses to lease from the subnet for registered
clients, e.g. the sum of your specified ranged from dhcpd.conf.
4. Subnet/mask length for unregistered clients, if different. If
blank, the assumption will be that you use addresses from the
subnet specified in the first field.
. All subnets are specified in CIDR notation, e.g. 192.168.64.0/20.
** subnet.pl
. A new require file including global variables and subroutines needed
for parsing the subnet.dat file, determining whether an IP address is
part of a given subnet, and a sanity check for CIDR notation subnets,
e.g. 192.168.114.0/20 is not valid -- it should be 192.168.112.0/20.
** variables.pl
. Deletion of $ALLOW_DOMAIN
Instead, the IP address of the user's host is compared with the
subnets for unregistered clients. If it does not fall into one
of them, registration is denied.
. Some additions
- $LDAP_URL added for "branding" purposes, removing references to
Southwestern University. You should URL-encode any special
characters. Leave <USERNAME> in the URL where you want the
username to be substituted.
- $SUBNETFILE points to the location of subnet.dat. Since this is
used in both register.cgi and admin.cgi, it had to be somewhere
where both could read it without requiring password access.
** admin.cgi
. The meter for the subnet overview is now scaled. It uses the field
from subnet.dat which specifies the number of useable addresses for
this purpose. As such, you can now easily tell if an address pool
is filling up.
. When viewing a subnet, the entries are sorted by user/MAC address.
. A new CGI parameter 'exact' was added. When the subnet details are
displayed, this is used with usernames to avoid having the find_conf()
routine return similar results, e.g. test might return entries for
test, mytest, testing, etc.
. All searches are case insensitive
. Server Manager
The 'ps aux' command was changed to 'ps auxw'. This avoids the appearance
that one of the crucial daemons is down, simply because it was started by
a script that included the full path, e.g. apache. (Note, several systems
of System V heritage do not support these BSD-style switches, e.g.
Solaris, but perhaps noone has ever tried NetReg on anything other than
Linux.)
. Numerous small changes for efficiency, and I'm sure someone can find
even more. Mostly these had to do with file handling (all file open
errors are now reported), or pattern matching.
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:37 CDT