Page 1 of 2 12>
Topic Options
#74933 - 2003-05-11 09:06 PM simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
I wana upgrade my script engine from 3.65 to 4.12 earliar my company was having win95 and NT clints now we have only WIN2k and NT clients I am testing my Win2k script now on 4.12 kix, some how INGROUP() fuction is not detecting global group, I'll post my script.
code:
if ingroup ("ITD Global Group")
? " group found"
endif

I read in the manuel that for Nt and 2k clients KXRPC service is not required so i have not updated the RPC service, PLS can some body tell me why this peace of code is not working ?

I tried to enumrate my group membership I am getting only local groups even I tried by deleting KIX key from the registry.

PLS help me...
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74934 - 2003-05-11 09:17 PM Re: simple may be....
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure kix works with global groups [Wink]

is this new group? if not, is the username you tried just added to that group?
is the group renamed?

these are all factors with kix 4.xx
and you should try flushing the group cache with /f-switch
_________________________
!

download KiXnet

Top
#74935 - 2003-05-11 09:21 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
This is old group and beleive me the sanme script is working with 3.65 i tried by flushing out with /f- switch
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74936 - 2003-05-11 09:40 PM Re: simple may be....
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Try with the domain name included.

if ingroup ("DomainName\ITD Global Group")

BTW, there is no 3.65 version of KiX.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#74937 - 2003-05-11 09:45 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
I tried that too, no way...

SORRY it was 3.60 not 3.65, by the way is there any issue with old RPC service and kix 4.x ? cause my domain controler still using old RPC service and this damm code is working on 3.60 ver too.

any idea ?
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74938 - 2003-05-11 09:52 PM Re: simple may be....
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
My DCs are running the RPC for 3.62, and InGroup() works on every 4.x ever released on my XP client. Test with some other groups.

Are you on NT4 or AD?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#74939 - 2003-05-11 09:59 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
my domain is win2k i tried all global groups it did not worked when I tried with local group it worked.

my local kix cache showed all this local groups which is working with this code.
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74940 - 2003-05-11 10:31 PM Re: simple may be....
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
rpc service is not used with NT-line so you can even remove it.

and it is never used for global groups.
it is there to support some special things for win9x, like localgroups.

there seems to be something else in this...
_________________________
!

download KiXnet

Top
#74941 - 2003-05-11 10:37 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
IC...

But why the same peace of code is working in 3.60 and not working in 4.12 ??
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74942 - 2003-05-11 10:41 PM Re: simple may be....
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
could you run this scriptlet and tell does it show any groups:



$Index = 0
DO
$Group = ENUMGROUP($Index)
$Index=$Index+1
$group ?
UNTIL Len($Group) = 0

? "listed."
get $



basically, all it does is show all global groups kix sees

[ 11. May 2003, 22:44: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#74943 - 2003-05-11 10:44 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
Yes it did, It listed all local groups both my local PC and domain local groups where I belongs to
code:
Everyone
W2K0182\Users
W2K0182\Administrators
INTERACTIVE
Authenticated Users
LOCAL
PasswordPropAllow
OLD_PasswordPropAllow
Print Operators
Server Operators
Users

_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74944 - 2003-05-11 10:45 PM Re: simple may be....
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
do you say that it shows all the same groups as with:
ENUMLOCALGROUP($Index)

?
_________________________
!

download KiXnet

Top
#74945 - 2003-05-11 10:54 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
No, ENUMLOCALGROUP gives me only domain local group as listed below

PasswordPropAllow
OLD_PasswordPropAllow
Print Operators
Server Operators
Users

whereas other one listed local PC as well as domain local groups.
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74946 - 2003-05-11 11:07 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
HURREEEEYYY

I found out the issue...when I mapped my drive to another PC and ran the script it worked !!! when I checked the registry cache of that PC i found i cached all local and global group where I belogs too whereas My pc cached only domain and local PC local groups strange isnt it ???

Now I am afaraid that if I deploy this script will it behave like this way for diffrent PC'c ??
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74947 - 2003-05-11 11:28 PM Re: simple may be....
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please explain your previous post in more detail. Changing a drive mapping should in no way alter the behavior of INGROUP.

[ 11. May 2003, 23:28: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#74948 - 2003-05-11 11:41 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
I meant to say that when I ran this script from another PC it worked, I read in the manuel that 4.02 is caching the access token group information to the HKC\software\kix\tokencache key when i checked the cache of that PC I found that it cached all groups I belongs to where us in my PC where I ran the script earliar it is cached only domain and PC local groups
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74949 - 2003-05-13 12:24 AM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
Can some body tell me me why my PC is caching only local and domain local groups only ??

code:
[HKEY_CURRENT_USER\Software\KiXtart\TokenCache]
"S-1-1-0"="Everyone;1066052"
"S-1-5-32-545"="W2K0182\\Users;1057308"
"S-1-5-32-544"="W2K0182\\Administrators;1106669"
"S-1-5-4"="INTERACTIVE;1068870"
"S-1-5-11"="Authenticated Users;1101471"
"S-1-2-0"="LOCAL;1063561"

Now I am afaraid that if I deploy this script will it behave like this way for diffrent PC's ??
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74950 - 2003-05-13 12:48 AM Re: simple may be....
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
If you delete the TokenCache key, do only these entries return? What OS is the client? Has the computer been rebooted? Have you used the "/f" option when running KiXtart?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#74951 - 2003-05-12 01:11 PM Re: simple may be....
Saleem Offline
Hey THIS is FUN
*

Registered: 2001-04-11
Posts: 280
Loc: UAE
I deleted tokencache, I restarted the pc I tried with /f switch option nothing worked I am using W2K OS.

If I delete tokenCache it will recreate only this entries.

is it network related issue ? if it is why the same code is working in other W2k machine with same ver of Kix32.exe ?
_________________________
“I’ll not change you unless you don’t have intention to change yourself” --H:Quran

Top
#74952 - 2003-05-12 01:49 PM Re: simple may be....
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I would look at the network settings. Are there other protocols? Is the provider order optimized?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.077 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org