#24387 - 2002-07-07 10:33 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
Server2 isn't a domain controler. It's just a file server, and the login script files are on it.
Batch file on server1 calls it. There are no other dlls, besides the 3 dlls of kix (which are copied to the client if needed).
Thanks, V.F.
|
Top
|
|
|
|
#24388 - 2002-07-07 03:06 PM
Re: InGroup + Global Groups
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Please post your batch file, logon script that are executed from the domain controller, and logon script executed from the member server. Please post the data you have placed in the Logon Script property of the user account (User Manager). How are you calling the script from the member server?
Why are you trying to run logon scripts from a member server? Please descibe your domain architecture.
I believe that you may not fully understand how logon scripts are called and executed on various clients.
Kixtart Starter's Guide [ 07 July 2002, 15:24: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#24389 - 2002-07-07 07:53 PM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
The architecture is as follows: server1 is a domain controller. kxrpc installed and running on server1. server2 is a file server.
In user manager, user profile, logon script name, defined a.bat, which is on server1.
a.bat calls b.bat on server2. b.bat copies the 3 kix dlls, if doesn't exist to the client and calls kix with 1.scr. 1.scr uses ingroup to check user membership in one of the groups. Neither local, nor global groups are identified for a user defined in the domain on server1.
Thanks, V.F.
|
Top
|
|
|
|
#24390 - 2002-07-07 08:02 PM
Re: InGroup + Global Groups
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Why are you calling a second batch file from your initial "a.bat" file? When you call "b.bat" are you using the batch "call" command (example: call b.bat)? Is server server2 in the same domain as server1?
Why are you being so cryptic? Why won't you post the problem code so that we can see if you have a coding issue?
|
Top
|
|
|
|
#24391 - 2002-07-07 08:12 PM
Re: InGroup + Global Groups
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
I know this problem, but i don't know the solution. Not yet!
I've played with this serveral times. Tested it with Local and Global groups and the InGroup function and only returns true if Local. No memebership of Global groups are true, though they are.
If I rename the KX95.dll or stop the service, it returns true if member of a Global group, but then no Local memberships are true although they are.
A good point there, installing the KXRPC service on all DC's. It's the first thing i'll tommorow.
Ryan
|
Top
|
|
|
|
#24392 - 2002-07-07 08:25 PM
Re: InGroup + Global Groups
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
The INGROUP function works with both global groups in the logon domain and local groups in multiple resource domains from all operating systems. I can not understand why either of you have this problem. That is why everyone is asking for the details of the architecture and the code used in the tests.
We can not understand your situation without the details of the environment and code.
|
Top
|
|
|
|
#24393 - 2002-07-07 09:16 PM
Re: InGroup + Global Groups
|
Ryan
Fresh Scripter
Registered: 2001-11-11
Posts: 42
Loc: the Netherlands
|
Howard,
I have the following question; Do you have a mixed situation? I mean do you have both 9x and NT clients?
Maybe your talking pure hypothetically, cuz theoretically everything works, but "life" is also about experience.
Ryan
|
Top
|
|
|
|
#24395 - 2002-07-07 09:24 PM
Re: InGroup + Global Groups
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
My KiXtart script supports Win95, Win98, Me, NT4, Win2000, and XP. To date we have not found any INGROUP issues other than the functional change brought about in KiXtart 4.x
RESOLVED - BUG Help 4.01 INGROUP Failures [ 07 July 2002, 22:07: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#24396 - 2002-07-08 10:08 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
Here is the code:
code:
a.bat: rem echo off echo calling b.bat pause call \\server2\netlogon\b.bat echo after b.bat pause
code:
b.bat: rem echo off set SERVER=server2 if not exist %windir%\system\kx16.dll copy \\%SERVER%\netlogon\kx16.dll %windir%\system if not exist %windir%\system\kx32.dll copy \\%SERVER%\netlogon\kx32.dll %windir%\system if not exist %windir%\system\kx95.dll copy \\%SERVER%\netlogon\kx95.dll %windir%\system if not exist %windir%\system\kx16.dll goto COPY_ERROR if not exist %windir%\system\kx32.dll goto COPY_ERROR if not exist %windir%\system\kx95.dll goto COPY_ERROR \\%SERVER%\netlogon\kix32 \\%SERVER\netlogon\script.scr /e:1024 goto EXIT :COPY_ERROR echo unable to copy dlls. pause :EXIT
code:
script.scr: select case InGroup("Domain Users") "in Global Group" ? case InGroup("Guests") "in Local Group" endselect "end of select" ? get $dummy
Domain Users is a global group, and guest is a local group. the user is member of both groups, yet only "end of select" is being printed to the output.
Thanks, V.F.
{edit} [Howard Bullock] Edited text to include code tags. [ 08 July 2002, 13:09: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#24397 - 2002-07-08 10:09 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
I mean Guests group.
|
Top
|
|
|
|
#24399 - 2002-07-08 04:15 PM
Re: InGroup + Global Groups
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I have tested your KiXtart code on one of my Win95 computers. The script outputs the I am in the "Domain Users" group.
I do not believe that your batch files have any bearing on your particular issue. Try executing your script after logon:
Kix32 \\server\share\script.scr
Did the script behavior change? Also have you applied any network component updates to tyour client? If not and your script still fails, I would recommend that you find and apply updates to your client and retest.
Please add a "Case 1" line and output if both previous CASE tests fail. [ 08 July 2002, 16:26: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#24400 - 2002-07-09 10:08 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
Scripts behaviour remains the same when executing after logon. No network updates were performed recently. @error, after the case, returns 0. case 1 is executed correctly.
Thanks, V.F.
|
Top
|
|
|
|
#24402 - 2002-07-10 10:42 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
Error returns 0.
I forgot to mention that there's another domain on server2. Does it metter?
Here's the correct architecture: server1 is a domain controller, to which users login. server2 is a file server where the kix script files are positioned. It also conatins, because of historical reasons, an old domain, to which no one logins.
For each user in the domain of server1 defined a.bat, which calls b.bat on server2, which calls the kix script.
Thanks again, V.F.
|
Top
|
|
|
|
#24404 - 2002-07-10 10:59 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
There's trust relathionship between the two domains, so I fon't think it metters...
|
Top
|
|
|
|
#24406 - 2002-07-11 12:26 AM
Re: InGroup + Global Groups
|
zz_vf_zz
Getting the hang of it
Registered: 2002-04-07
Posts: 53
|
Exactly this code. I got zeroes for ingroup & @error
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 369 anonymous users online.
|
|
|