Page 1 of 1 1
Topic Options
#189185 - 2008-08-20 05:58 PM Help with multiple sites
kixR4Kidz Offline
Just in Town

Registered: 2008-08-20
Posts: 1
Hey Kixperts, I use Kixtart in a school system. We map drive letters based on group membership. All works well, until we have folks who may log in at several of the schools. For instance, teacherA is a member of the High School Teachers group, so they map to the High School. TeacherA may also be working some at the Middle school. How can I get Kix to recognize where the use is logging in at and map the respective drives for each site? Thanks for your input. Best regards, TJ
Top
#189186 - 2008-08-20 06:32 PM Re: Help with multiple sites [Re: kixR4Kidz]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Well since these are seperate sites, there should be several ways that you can accomplish this.

If you have your Sites set up in AD as seperate Sites you can say ...
 Code:
If INGROUP("HSTEACHERS") and @Site = "HighSchool"
 do Stuff
Else
 If INGROUP("HSTEACHERS") and @SITE = "MIDDLESCHOOL"
  Do this instead
 EndIf
EndIF


Or you can use the same type of logic with an IP Address

Or you can use a SELECT - CASE logic

 Code:
Select
  Case @Site = "HIGHSCHOOL"
    If INGROUP("HSTEACHERS")
     do stuff
    EndIf
  Case @Site = "MIDDLESCHOOL"
   If INGROUP("HSTEACHERS")
    do stuff
  Case 1
    ;No match so do nothing
EndSelect


And there are many other ways to accomplish it.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#189187 - 2008-08-20 09:36 PM Re: Help with multiple sites [Re: Gargoyle]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
The login script on my web site uses PathRewrite to accomplish this, if you use AD Sites. Simply create a resource record to define what you need. For example:
 Code:
[S Drive]
CLASS=DISK
TARGET=S:
PATH=&SITE:SCHOOLSHAREMAP&
Groups=Faculty

[SCHOOLSHAREMAP]
HighSchool=\\server1\share
WashingtonMiddleSchool=\\server2\share
JeffersonMiddleSchool=\\server3\share

Basically, when it reads that record, it verifies that the user is a member of the Faculty group. If they are, it determines the AD site name, looks up the site name in the SCHOOLSHAREMAP section, and obtains the UNC path to the share. It maps that path to the defined drive.

If you don't use AD sites, I've been tinkering with a &SUBNET:MAPNAME& form of path rewriting that would determine the subnet where the user was logging in from. I'd be willing to put that on the front burner if you want to give my script a go. Full info is on my web site.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#189190 - 2008-08-21 02:14 AM Re: Help with multiple sites [Re: Glenn Barnas]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Well, it only took 15 minutes on the front burner. The script now supports path rewriting by AD Site, User, OU, and network address.

Basically, if you have a computer with address 172.16.3.43 and a netmask of 255.255.254.0, the network address is 172.16.2.0. This calculated network address can be used as a lookup reference:
 Code:
[SubnetLookup]
172.16.0.0=\\server1\share\path
172.16.2.0=\\server2\share\path
in a format similar to my prior post. In this way, a Teacher would map server1 to the S: drive in one location, but map Server2 to the S: drive in a different location.

Another cool thing about path rewriting - the lookup doesn't need to include the share path - only the server, so if the resource record was
PATH=&SUBNET:SubnetLookup&\share
- and you had consistent share names at each location, only the server name would be replaced during the PathRewrite operation. This means that the same rewrite table could be used for multiple drive maps, reducing overall complexity.

I'll currently make Version 2.4.3 with SubnetRewrite capability available only by request until I've had sufficient time to test it - PM here or email from my web site if you want to try it out.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#189196 - 2008-08-21 07:06 PM Re: Help with multiple sites [Re: Glenn Barnas]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
What if the first network is no bigger than 172.16.0.0/25?
Top
#189201 - 2008-08-21 08:10 PM Re: Help with multiple sites [Re: Witto]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
I'm not sure I understand your question..

If a network is /25, and that's the only network range you have, then there's no point in doing subnet based mapping because you don't have subnets. On the other hand, if your network is /25, but you break it into subnets, then you can map by subnet because the script can calculate the network address based on the client IP and netmask (which would be more than 25 bits).


Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#189206 - 2008-08-21 11:33 PM Re: Help with multiple sites [Re: Glenn Barnas]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Well, maybe someone wants to split up his class B network 172.16.0.0 like this:
172.16.0.0/23
172.16.2.0/25
172.16.2.128/25
172.16.3.0/25
172.16.3.128/25
172.16.4.0/24
172.16.5.0/24
etc...

Top
#189220 - 2008-08-22 11:59 AM Re: Help with multiple sites [Re: Witto]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Well, if they did, then those would be the subnets that got calculated by the script. The lookup table would be:
 Code:
172.16.0.0=\server1
172.16.2.0=\server2
172.16.2.128=\server3
172.16.3.0=\server4
172.16.3.128=\server5
172.16.4.0=\server6
172.16.5.0=\server7

Each one would have to be a legitimate subnet with a proper subnet mask. In other words, you could not have a network of 192.168.0.0/24, and have users with addresses 0-127 user server1 and those with addresses 128-255 use server2.

The logic doesn't consider network class - it is based on the CIDR standard. The only thing that's important is the local IP and netmask.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#189224 - 2008-08-22 01:07 PM Re: Help with multiple sites [Re: Glenn Barnas]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
 Originally Posted By: Glenn Barnas
The only thing that's important is the local IP and netmask.

That is what I want to say. I don't see a subnet mask indication.
Let's presume the user does not use the range 172.16.6.0 to 172.16.15.127 and continues with the subnet 172.16.15.128/26

Top
#189225 - 2008-08-22 01:16 PM Re: Help with multiple sites [Re: Witto]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
You don't need a subnet mask in the network specification (unless you have overlapping subnets, which is bad design to begin with - ie. one system with 192.168.4.17/24 and another with 192.168.5.93/23 - they are both in network 192.168.4.0). The client IP and client netmask are used to determine the network address.

Pick any IP and netmask. Logically AND the two - the result is the network address. That address is placed in the lookup table, so that any other combination of IP and mask that generates the same network address will use the same lookup value.

In your example, the network address for that subnet is 172.16.15.128, and only computers in the range 172,16,15,128-191 will generate that network address. Maybe it would make more sense to you if it were called the "subnet address" and not the "network address"?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#189228 - 2008-08-22 01:36 PM Re: Help with multiple sites [Re: Glenn Barnas]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
OK, I think I see what you mean. Your login script gets all the network addresses of all the NIC's in the computer.
Top
Page 1 of 1 1


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

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