Page 1 of 1 1
Topic Options
#2867 - 2000-05-11 05:10 PM @primarygroup
Manimal Offline
Getting the hang of it

Registered: 2000-04-04
Posts: 96
Loc: Oregon City, OR. USA
here's the code:
;-------------------------------------------
select
Case @PRIMARYGROUP = "admingrp"
use g: "\\server\admingrp"
use x: "\\server\apps"
$gr="Office Administration"
Case @PRIMARYGROUP = "autocad"
use e: /d
use g: "\\server\autocad"
use e: "\\server\engineer"
use x: "\\server\apps"
$gr="Autocad Users"
Case @PRIMARYGROUP = "bldserv"
use g: "\\server\blsderv"
use x: "\\server\apps"
$gr="Building Services"
endselect
;--------------------------------------------
And here's the problem:

We have a department with users who either float or have multiple functions and are thus in multiple "divisional" groups. Because of this the "ingroup" function isn't going to cut it.

I have instead tried to use the "@primarygroup" but the problem is that it doesn't work. A user can be a member of all three of the above groups but I only want that user to recieve the mappings of the middle one. What happens, however, is that the user recieves the mapping of the first group he is a member of regardless of what the Primary Group is set at.

All of the machines involved are WindowsNT 4.0 and the RPC service is installed and running on all domain controllers.

HELP?

------------------
Chris Fricke
Clackamas County

_________________________
Chris Fricke
Clackamas County

Top
#2868 - 2000-05-12 09:09 AM Re: @primarygroup
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
everything looks right.......

I just did a quick test with the following code, I am running win2000, my primary group is domain admins.

I am also in the MIS, and Domain user group

code:

select
case @primarygroup = "mis"
? "you are in the mis"
case @primarygroup = "domain users"
? "you are a doamin user"
case 1
?"Don't know what to do with @primarygroup...."
endselect

Everything worked like it should (case 1 was selected). Are you running kix 3.62? Are the Primary groups set? Could it have been that you are loggin on to a bdc that still thinks that your primarygroup is different? use the following on a domain controller to force it to sync up "net accounts /sync"

hope any of that helps
Bryce

[This message has been edited by Bryce (edited 12 May 2000).]

Top
#2869 - 2000-05-12 02:10 PM Re: @primarygroup
Manimal Offline
Getting the hang of it

Registered: 2000-04-04
Posts: 96
Loc: Oregon City, OR. USA
I had everything right... I um... forgot to change the name of the script file being called in the test.bat... <sigh>

[slaps himself and runs to hide in the corner sobbing]

_________________________
Chris Fricke
Clackamas County

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 700 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 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