Re: NetReg: NetReg 1.3RC1 Released

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Allie M Tate (allie@lsu.edu)
Date: Mon Dec 10 2001 - 09:40:02 CST


Here are the changed functions:

#----------------------------------------------------------------------------\
# The User has authenticated, get their network & hardware info
#----------------------------------------------------------------------------\
  sub get_host_info {
    # Parse through the leases file to get user MAC address based on IP
    $DONE = 1;
    open(LEASES, "$LEASESPATH/dhcpd.leases");
    while (<LEASES>) {
      if (!$DONE) {
* if ($_ =~ /ethernet | token/) {
* ($TRASH, $TRASH, $INTERFACE, $MAC) = split / +|\;/;
          $RECORDS{$LEASEIP} = uc($MAC);
* $INTERFACES{$LEASEIP} = lc($INTERFACE);
.
.
.

#----------------------------------------------------------------------------/

#----------------------------------------------------------------------------\
# Put the date in a usable/sortable format (Y2K Compliant)
# Open dhcpd.common.new in append mode and add the user as a known host
#----------------------------------------------------------------------------\
  sub append_host_entry {
.
.
.
    my $theHost = uniqueHostname($FORM{'user'},$IP);

    open (DHCPDCONFNEW, ">>$DHCPDCONFPATH/dhcpd.common.new");
* print DHCPDCONFNEW "host $theHost { hardware $INTERFACES{$IP} ";
    print DHCPDCONFNEW "$RECORDS{$IP} \; }\#$ENV{'HTTP_USER_AGENT'}";
    print DHCPDCONFNEW "\#$YR$MO$DAY $TIME\#$IP\n";
    close DHCPDCONFNEW;
  }
#----------------------------------------------------------------------------/

Allie

                                                                                                                                  
                    Peter Valian
                    <valianp@southweste To: netreg@southwestern.edu
                    rn.edu> cc: (bcc: Allie M Tate/allie/LSU)
                    Sent by: Subject: Re: NetReg: NetReg 1.3RC1 Released
                    owner-netreg@southw
                    estern.edu
                                                                                                                                  
                                                                                                                                  
                    12/07/2001 10:58 PM
                    Please respond to
                    netreg
                                                                                                                                  
                                                                                                                                  

Allie,

If you can integrate the code easily into 1.3RC1 I will see about adding
it to RC2.

Allie M Tate wrote:

> Peter -
>
> Funny you should send this out today. I was just about to send you some
> changes that I've had to make for my environment. I looked through the
> archive to see if anyone else discovered this to no avail.
>
> I know that token-ring is just about obsolete, but we still have it
> lingering on our campus. We have decided to move my department over to
> dhcp in the process of removing token-ring from parts of the building and
> making other major network changes and I came across the problem of the
> hard-coded "ethernet" in the register.cgi. I simply added another hash
and
> used what the dhcpd.leases file had on record as the hardware type for
the
> registering host.
>
> If anyone is interested, shoot me a message and I'll send you my exact
> changes.
>
> Allie
>
>
>
>
> Peter Valian
> <valianp@southweste To:
netreg-announce@southwestern.edu, netreg@southwestern.edu
> rn.edu> cc: (bcc: Allie M
Tate/allie/LSU)
> Sent by: Subject: NetReg:
NetReg 1.3RC1 Released
> owner-netreg@southw
> estern.edu
>
>
> 12/07/2001 01:21 AM
> Please respond to
> netreg
>
>
>
>
>
>
> Hey All,
>
> I went ahead and cut a NetReg 1.3RC1.
>
> The biggest fix is that it works with the latest ISC DHCPD 3.0 (final).
> Ive been trying to hold off until I updated the documentation but I just
> haven't had the time.
>
> This will probably be the last update before NetReg 2.0.
>
> Please be aware that you cannot simply replace the CGI's...the
> variables.pl has changed slightly. You may be able to just replace the
> lease parser subroutine in admin.cgi, however.
>
> Enjoy!
>
> -peter
>
> --
> Peter Valian
> Network & Systems Administrator
> Southwestern University
> Georgetown, Texas
> --
> **********************************************************************
> 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
> **********************************************************************
>
>
>
> **********************************************************************
> 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
> **********************************************************************
>

--
Peter Valian
Network & Systems Administrator
Southwestern University
Georgetown, Texas
512.863.1586 office
512.863.1605 fax
--

********************************************************************** 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 **********************************************************************

********************************************************************** 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 **********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:36 CDT