From: King, Michael (MKING@bridgew.edu)
Date: Mon Jul 02 2001 - 18:29:20 CDT
Ok, I've discovered my problem, and answered it. Now I need some help with
the PERL script.
My problem wasn't with my DHCP server. Wrong track entirely.
My FTP server (I can't authenticate against a POP server, we use IMAP, I'd
use Radius, but I never saw the code posted) requires logins of a the nature
"bsc/username". bsc being the domain of our user database. I had been
typing the bsc/ into the username box, but the sticky part is the /
character is not a valid character for dchpd.conf file. (which was being
updated by register.pl to include a host of what was typed in the username
box)
Can someone tell me how to insert the bsc/ into the register.pl script, so
it uses it to login to the FTP server, but making sure it doesn't get
written to the dhcp.conf file?
the line in question is
$ftp->login($FORM{'user'}, $FORM{'pass'});
I tried (knowing nothing of PERL) this and got script errors:
$ftp->login($FORM{bsc/'user'}, $FORM{'pass'});
Thanks
Btw, what size shirt you take Peter?
Michael King
Telecommunications Support Specialist
Bridgewater State College
(508) 531-2528
(508) 531-4528 Fax
mking@bridgew.edu
-----Original Message-----
From: King, Michael [mailto:MKING@bridgew.edu]
Sent: Monday, July 02, 2001 6:03 PM
To: 'netreg@southwestern.edu'
Subject: NetReg: DHCP Not doing what I thought it was supposed to.
Hi, I'm trying to implement my first NetReg box, and I see I'm probably
picking the worst time with all the updates to BIND and DHCP.
I'm Running ISC DHCP 3.0RC8.
I've got it to the point where I'm handing out my *unregistered* client
IP's. (there being blocked at the firewall)
I go to the registration page, and register, and it says "Registration
Completed, please reboot your computer"
I reboot the computer and it has the same IP address from the *unregistered*
client IP pool
I'm attaching my dhcp.conf file
## ISC DHCPD v3 Configuration file
## netreg.southwestern.edu -- DHCP registration server
## Peter Valian -- June 04 1999
##
max-lease-time 120;
default-lease-time 120;
allow bootp;
option domain-name "test.bridgew.edu";
ddns-update-style none; # didn't think I needed dynamic DNS
# Our DHCP server lives on a subnet that should not use DHCP
# but we must declare a pool anyway
shared-network "ResNet" {
# I had to add a shared-network statement, it kept trying to hand out the
address from the 192.207.56.0 range, which was full
subnet 192.207.56.0 netmask 255.255.255.0 {
pool {
range 192.207.56.212 192.207.56.213;
deny unknown clients;
}
}
subnet 192.168.244.0 netmask 255.255.255.0 {
option routers 192.168.244.254;
# Unknown clients get this pool.
pool {
option domain-name-servers 192.207.56.12;
max-lease-time 120;
default-lease-time 120;
range 192.168.244.1 192.168.244.100;
allow unknown clients;
}
# Known clients get this pool.
pool {
option domain-name-servers 192.168.254.3, 192.207.56.1;
max-lease-time 28800;
default-lease-time 28800;
range 192.168.244.101 192.168.244.240;
deny unknown clients;
}
}
} #end of shared-network
Other than the shared-network statement, it's a plain vanilla copy of the
provided conf file. It'll get more complex later, but I got to get it
working on my test domain first.
here's a quick snippet from the leases file
lease 192.168.244.100 {
starts 1 2001/07/02 20:50:26;
ends 1 2001/07/02 20:52:26;
binding state active;
next binding state free;
hardware ethernet 00:80:5f:d8:c0:1b;
uid "\001\000\200_\330\300\033";
client-hostname "BSC_10";
}
That's repeated about 100 times in both the .leases file, and the .leases~
Anything blatantly obvious that I'm missing?
Thanks
Michael King
Telecommunications Support Specialist
Bridgewater State College
(508) 531-2528
(508) 531-4528 Fax
mking@bridgew.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
**********************************************************************
**********************************************************************
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:35 CDT