Page 2 of 3 <123>
Topic Options
#24387 - 2002-07-07 10:33 AM Re: InGroup + Global Groups
zz_vf_zz Offline
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 Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24389 - 2002-07-07 07:53 PM Re: InGroup + Global Groups
zz_vf_zz Offline
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 Offline
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?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24391 - 2002-07-07 08:12 PM Re: InGroup + Global Groups
Ryan Offline
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 Offline
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24393 - 2002-07-07 09:16 PM Re: InGroup + Global Groups
Ryan Offline
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
#24394 - 2002-07-07 09:22 PM Re: InGroup + Global Groups
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ryan took my words on that question.

hoby, have you tested separately on win95/win98 machines that it's working correctly.

but about the problem, ryan yours is different.

can't still say though what might be the issue as no script posted nor batches...

can't test it anywhere as I don't use rpc-service as it does not fit to administration policy to help w9x clients to come along.

cheers,
_________________________
!

download KiXnet

Top
#24395 - 2002-07-07 09:24 PM Re: InGroup + Global Groups
Howard Bullock Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24396 - 2002-07-08 10:08 AM Re: InGroup + Global Groups
zz_vf_zz Offline
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 Offline
Getting the hang of it

Registered: 2002-04-07
Posts: 53
I mean Guests group.
Top
#24398 - 2002-07-08 10:19 AM Re: InGroup + Global Groups
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
could you also make your scr to:
? "ingroup returns for domain users:"
InGroup("Domain Users")
? "with errorcode:" @error
? "ingroup returns for Guests:"
case InGroup("users") ;changed the group
? "with errorcode:" @error
get $dummy

also, if you could use test with user only on domain users not guests.
I changed the script as don't like the idea of a user belonging to guests and users at the same...

this also can cause the problem as guests group is a restrictive...
_________________________
!

download KiXnet

Top
#24399 - 2002-07-08 04:15 PM Re: InGroup + Global Groups
Howard Bullock Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#24400 - 2002-07-09 10:08 AM Re: InGroup + Global Groups
zz_vf_zz Offline
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
#24401 - 2002-07-09 11:04 AM Re: InGroup + Global Groups
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
zz, please, leave the case out of it and check error of the group membership functions.
_________________________
!

download KiXnet

Top
#24402 - 2002-07-10 10:42 AM Re: InGroup + Global Groups
zz_vf_zz Offline
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
#24403 - 2002-07-10 10:45 AM Re: InGroup + Global Groups
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
zz, if no users logon to that old domain, why don't you make it normal member server in the new domain?

cheers,
_________________________
!

download KiXnet

Top
#24404 - 2002-07-10 10:59 AM Re: InGroup + Global Groups
zz_vf_zz Offline
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
#24405 - 2002-07-10 11:27 AM Re: InGroup + Global Groups
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
zz, did you try it with:

? "ingroup returns for domain users:"
InGroup("Domain Users")
? "with errorcode:" @error
? "ingroup returns for Guests:"
InGroup("users") ;changed the group
? "with errorcode:" @error
get $dummy

?
_________________________
!

download KiXnet

Top
#24406 - 2002-07-11 12:26 AM Re: InGroup + Global Groups
zz_vf_zz Offline
Getting the hang of it

Registered: 2002-04-07
Posts: 53
Exactly this code.
I got zeroes for ingroup & @error

Top
Page 2 of 3 <123>


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

Who's Online
0 registered and 918 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.074 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