Page 1 of 1 1
Topic Options
#20200 - 2002-04-19 03:06 PM can I do this in KIx ? mapping drive letters depending of groups
StefanSchuessler Offline
Lurker

Registered: 2002-04-18
Posts: 2
Loc: Muenchen
IŽd like to define say 5 drive letters from H: to L:.

If a user belongs to three groups, the appropriate shares should be mapped as H:, I:, J:.

The next user may belong to 5 groups, the he should get the appr. shares and all drive letters from H: to L:.

IŽd like to avoid having to assing dedicated drive letters every time a user is in a group.

Might sound weird by your help / hints are very much appreciated !

CHEERS !

Top
#20201 - 2002-04-19 03:13 PM Re: can I do this in KIx ? mapping drive letters depending of groups
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Checkout InGroup in the KiXtart docs. If you need more help beyond that, please post more detail and a better example.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#20202 - 2002-04-19 03:26 PM Re: can I do this in KIx ? mapping drive letters depending of groups
StefanSchuessler Offline
Lurker

Registered: 2002-04-18
Posts: 2
Loc: Muenchen
Hi Howard,

1st thanx for your quick reply.

We got a flat directory structure ( inhertiated it ) for groupe drives.

LIKE: ..... HR
..... MARKETING
..... SALES-NORTH
..... SALES-WEST etc.

Share & NTFS rights are down through groups. I IŽm lazy and want to avoid having to create a "IF INGROUP" statement for each individual user.

Say I reserve n drive letters for group drive mappings. For example IŽd reserve 6 drive letters ( max a user would need ). Is there a way to tell KIX if the user belongs to 3 groups he should get drive letters H, I, J. The next user only belongs to 2, so he should get H & I.

Or, can KIX assing drive letters automatically depending on the number of groups a user belongs to ?

Top
#20203 - 2002-04-19 03:41 PM Re: can I do this in KIx ? mapping drive letters depending of groups
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Create an array for the drive letters and use a counter to count how many drive letters have already been mapped for that particular user
code:
DIM $driveletter[5], $dlconter

$driveletter[0]='h'
$driveletter[1]='i'
$driveletter[2]='j'
$driveletter[3]='k'
$driveletter[4]='l'
$driveletter[5]='m'

$dlcounter=0
IF INGROUP('Group A')
use $driveletter[$dlcounter] '\server\share1'
$dlcountr=$dlcounter+1
use $driveletter[$dlcounter] '\server\share2'
$dlcountr=$dlcounter+1
ENDIF
IF INGROUP('Group B')
use $driveletter[$dlcounter] '\server\share3'
$dlcountr=$dlcounter+1
use $driveletter[$dlcounter] '\server\share4'
$dlcountr=$dlcounter+1
use $driveletter[$dlcounter] '\server\share5'
$dlcountr=$dlcounter+1
ENDIF

Personally, I would go with specific driveletter for a specific share. Otherwise you'll a Joe user saying, 'Oh, I always saved ot the N: drive, now it's gone and I can't find it anymore'

[ 19 April 2002, 15:41: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#20204 - 2002-04-19 03:50 PM Re: can I do this in KIx ? mapping drive letters depending of groups
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Thanks Jens for picking up on this thread while I was otherwise engaged in actual work.

I agree with Jens, you are inviting confusion on the part of the user community because user1 could map I: to location #1 and user2 could map the I: to a different location. When these users communicate they no longer have a coomon understanding of what the drive letter represents.
_________________________
Home page: http://www.kixhelp.com/hb/

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 837 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.051 seconds in which 0.024 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