#139875 - 2005-05-18 12:49 AM
How to change the user defined for @USERID
|
rogerfleming
Lurker
Registered: 2005-05-18
Posts: 4
|
I have a need to configure the KIX to use a different domain user then the user who is login to the workstation. Can this be done, and how would it be evaluated with ingroup condition? This is to allow multiple users to use the same machine without logging out and logging in as a different user.
|
Top
|
|
|
|
#139878 - 2005-05-18 05:35 PM
Re: How to change the user defined for @USERID
|
rogerfleming
Lurker
Registered: 2005-05-18
Posts: 4
|
Background information: We are a health care company who has workstations shared my multiple users. We are implimenting a Single Sign-On solution which authenticates differant users to the desktop. The workstation remains logged on the network as a generic user account. The SSO program can lunch the Kix Script during the unique user login, but the @USERID only sees the generic login account. We would like to change the @USERID to the SSO Login account which is a Active Directory account. We have validated the we can change the environmental variable of the USERNAME for the currently login account, but it seems KIX does not use this to determine the @USERID. I guess the question is what does @USERID use to determine the currently logged in account. So that we can change the variable and then have KIX evaluate the new account name for ingroup clause.
Thanks,
Roger Fleming
Edited by rogerfleming (2005-05-18 05:37 PM)
|
Top
|
|
|
|
#139881 - 2005-05-18 07:10 PM
Re: How to change the user defined for @USERID
|
Richard H.
Administrator
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
We have validated the we can change the environmental variable of the USERNAME for the currently login account
Why not just use %USERNAME% in your scripts instead of the @USERID macro?
|
Top
|
|
|
|
#139886 - 2005-05-18 08:06 PM
Re: How to change the user defined for @USERID
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Thanks for the update Maciep. Appreciate it. Have not used such software methods yet.
http://www.hl7.org.au/CCOW.htm
http://www.orionhealth.com/concerto_technical_ccow.htm
Quote:
The HL7 CCOW (Clinical Context Object Workgroup) Standard is vendor independent and allows clinical applications to share information at the point of care. Using a technique called "context management", CCOW provides the clinician with a unified view on the information held in separate and disparate healthcare applications referring to the same patient, encounter or user. This means that when a clinician signs onto one application within the group of disparate applications tied together by the CCOW environment, that same sign-on is simultaneously executed on all other applications within the group. Similarly, when the clinician selects a patient, the same patient is selected in all the applications. CCOW then builds a combined view of the patient on one screen. CCOW works for both client-server and web-based applications. The acronym CCOW stands for "Clinical Context Object Workgroup", a reference to the standards committee within the HL7 group that developed the standard.
Citrix Solutions for CCOW http://www.citrix.com/English/PS/industries/feature.asp?industryID=1412&featureID=14448
Edited by NTDOC (2005-05-18 08:09 PM)
|
Top
|
|
|
|
#139887 - 2005-05-19 12:18 AM
Re: How to change the user defined for @USERID
|
rogerfleming
Lurker
Registered: 2005-05-18
Posts: 4
|
Here is our script;
if ingroup("abcdef") use E: /d use E: \\abc123\abcde123 endif
What we want to do is provide a Global user variable to have the KIX script use in evaluating the ingroup clause. We believe it is using the @USERID Macro. What user ID does the KIX used to be applied against the "use" command?
Also this SSO solution is Etrust SSO from Computer Assocaites
Any ideas?
Thanks,
Roger Fleming
|
Top
|
|
|
|
#139888 - 2005-05-19 01:02 AM
Re: How to change the user defined for @USERID
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
You are very close.. you need to surround your Server\Resource to be: Code:
if ingroup("abcdef") use E: /d use E: "\\abc123\abcde123" endif
HTH,
Kent
|
Top
|
|
|
|
#139890 - 2005-06-02 10:58 PM
Re: How to change the user defined for @USERID
|
rogerfleming
Lurker
Registered: 2005-05-18
Posts: 4
|
We found this method to work correctly except it loops the function after each if $group statement. Do you have any ideas to store the groups list to a table stored in memory as the script evaluates each if $group statement?
Thanks,
cls color g+/n ? " Please Wait While Your Login Script Executes...." color n/n ; Arlington Logon Script
Function UserGroups($target,$user,OPTIONAL $datatype)
DIM $group, $temp[2], $i $user = getobject("WinNT://$target/$user,user") if @error <> 0 and vartype($user) <> 9 exit(@error) endif for each $group in $user.groups select case $datatype = 0 ;return the group.name $temp[$i] = $group.name case $datatype = 1 ;return the groupobject $temp[$i] = $group case $datatype = 2 ;return the group.adspath $temp[$i] = $group.adspath case 1 exit(1) endselect if $i = ubound($temp) redim preserve $temp[$i+2] endif $i = $i+1 next if $i <> 0 redim preserve $temp[$i-1] $UserGroups = $temp else redim preserve $temp[$i] $usergroups = "" endif exit(0) endfunction
if $SSOUSER $groups = UserGroups(@domain,$SSOUSER) ;for each $group in $groups ?$group next
ELSE $groups = UserGroups(@domain,@USERID) ;for each $group in $groups ?$group next ENDIF
for each $group IN $groups IF $group = "Epic Hyperspace" use x: /d if $cgroup use x: "\\ftwgen01\mlsreports" /user:$SSOUSER /password:$SSOPWD ELSE use x: \\ftwgen01\mlsreports ENDIF ENDIF
IF $group = "ftwgen01.mlsreportsR" use x: /d if $cgroup use x: \\ftwgen01\mlsreports /user:$SSOUSER /password:$SSOPWD ELSE use x: \\ftwgen01\mlsreports ENDIF ENDIF
; REM ************************************************************************ ; REM App drive F: IF $group = "ARL" use f: /delete if $cgroup use f: "\\ftwgen01\arl apps" /user:$SSOUSER /password:$SSOPWD ELSE use f: "\\ftwgen01\arl apps" ENDIF ENDIF
; REM ************************************************************************
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|