Page 1 of 1 1
Topic Options
#48115 - 1999-09-05 04:00 PM DHCP server adres
Anonymous
Unregistered


Hello,

I'm currently running kixtart for my login script. We have 200 servers on the network in 180 locations. Every location is connected via a frame relay connection.
On every location there is a BDC (Single Domain Model).

In Usermanager i've configured A homedirectory for every user, the homedirectory is on the nearest server. I want to make sure that is is not possible for a user to logon to the network if he is not on his own location.

I want to make a check in my login script to see if the DHCP server is the same as de Homeserver. I don't want to use de logonserver because I happens sometimes that a user is logged on via another location.


Top
#48116 - 1999-09-06 10:17 AM Re: DHCP server adres
Anonymous
Unregistered


A partial response is where to find the address of your DHCP server.

You can find Ip address of dhcp server in value "DhcpServer" of
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xxxxxxx\Parameters\Tcpip

Where xxxxxx is the hardware name of your network interface.

Hope this helps.

Greg.

Top
#48117 - 1999-09-07 12:26 AM Re: DHCP server adres
Anonymous
Unregistered


Hello Greg,

I know that I can find the DHCP server setting there but then you need to know the name of your network adater.
ust of our computer are the same but there are a few different types.

Do you know a way to find out the name of your network adapter so that I can use it to find my DHCP server.

Top
#48118 - 1999-09-07 08:53 AM Re: DHCP server adres
Anonymous
Unregistered


There is also a value DhcpServer in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Adapters\XXXXX,
where xxxx is the name of the adapter. Under this key there is only the net adapters so you can use the EnumKey function to find the value.

------------------
Luis Hevia

Top
#48119 - 1999-09-08 07:10 PM Re: DHCP server adres
Anonymous
Unregistered


There is another solution that I've been working on to this problem. This might work for you depending on how you have your networks subnetted. First, you read in the IP address of the host.. then you ping the logonserver, then you parse the IP address of the logonserver and the host, then you compare the two IP addresses using the subnet your network--Then you know whethor or not the host and the logonserver are in the same network (wow just like arp does!).
If they don't match up, then you force a logout, if they match then you allow logon to continue.

I don't know why you'd need the address of the DHCP server as long as it's in the same network as the logonserver and I haven't heard of any DHCP servers that assign IP's across routers...This plan might be fouled if you've got supernetted IP addresses or something funky like that, but it should work if you're using regular 255.255.255.0 subnet masks. (I'm about 75% done with it, I have it working except I haven't written the code to parse the IP address from a ping statement).

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2312 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.052 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org