Page 1 of 1 1
Topic Options
#47327 - 2003-10-27 03:03 PM InGroup: very basic question
Chuck1 Offline
Lurker

Registered: 2003-10-27
Posts: 1
Loc: USA
I am using, for testing purposes, a WIN2000 peer-to-peer network w/ a file Server (no PDCs or BDCs) that has a NETLOGON share. When I use a known good KIX32.exe in conjunction w/ a login.txt none of the InGroup commands contained in the login.txt work. Yet, the kix32.exe and Login.txt work fine when used on a domain. For the inGroup command to work, must I be authenticated on a Domain or will the ingroup command work on a W2k peer-to-peer network?
Top
#47328 - 2003-10-27 03:06 PM Re: InGroup: very basic question
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure it works.
you just need to specify presicely what group you are after.
ingroup("admins")

is not the same as:
ingroup("\\my_current_wksta\admins")
_________________________
!

download KiXnet

Top
#47329 - 2003-10-27 03:11 PM Re: InGroup: very basic question
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
InGroup( )

Action: Checks whether the current user is a member of a group.

Syntax: INGROUP ("group name")

Parameters: Group name
Identifies the group in which to check the user's membership.

Remarks: INGROUP can be used to check for groupmembership of groups that exist on the domain or server where the user is logged on, or to check for groupmembership of groups on a specific domain or server.
When checking for a local group, INGROUP identifies that the user is indirectly a member of the group by virtue of being a member of a global group which, in turn, is a member of the local group.

If you want to check for membership in a group on a specific domain or server, use the following format:

"OtherDomain\group"
–or–
"\\SomeServer\group"

For Windows 9x clients, INGROUP works on local groups only if the KiXtart RPC service is running.

Returns: 0 The user is not a member of a group with this name.
1 The user is a member of a global group with this name.


See Also: EnumGroup( ), EnumLocalGroup( ), Group Membership Information

Examples: IF INGROUP("Domain Users")
DISPLAY "z:\users.txt"
ENDIF

IF INGROUP("\\" + @WKSTA + "\Developers")
? "Member of local group Developers on local system"
ENDIF
_________________________
Co


Top
#47330 - 2003-10-28 03:57 AM Re: InGroup: very basic question
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It also requires identical accounts (username/password) on each computer.
_________________________
There are two types of vessels, submarines and targets.

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 2375 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.052 seconds in which 0.025 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