#163630 - 2006-06-26 11:26 AM
How to use InGroup ???
|
SASKINN
Fresh Scripter
Registered: 2006-06-06
Posts: 10
|
an example:
If InGroup("Developers") = 1 ? "Member of Developers" EndIf
its clear that is something/someone is IN the Developers group de text "Member of Developers" is displayed.
oke, but if I need to check the user(s) "Mike" or "Robert" if he/they is/are in de group "developers" how do i have to do that?
like this????
if "mark" Ingroup("developers") endif
???
|
|
Top
|
|
|
|
#163632 - 2006-06-26 01:16 PM
Re: How to use InGroup ???
|
SASKINN
Fresh Scripter
Registered: 2006-06-06
Posts: 10
|
it doesnt seem to work...
the active directory group is like this:
companyName.CORP -HQ Office --Groups ---Resource Groups ----Projects -----A Project ......--- A Project Modify ......--- A Project Read -----B Project ......--- B Project Modify ......--- B Project Read -----C project ......--- C Project Modify ......--- C Project Read
I want to look in the A Project Modify group if the user "Martin" is member of the group OR look if the Department "Sales" is IN the A Project Modify group.
Thanks if you can help me.
|
|
Top
|
|
|
|
#163634 - 2006-06-26 01:39 PM
Re: How to use InGroup ???
|
SASKINN
Fresh Scripter
Registered: 2006-06-06
Posts: 10
|
the only thing I want is to know if a user is IN the group with the name: "A Project Modify" or not. I dont want to know any security options, only the groupmembership.
groupName: "A Project Modify" member: "Sales Department"
is Sales Department member of the "A Project Modify" group ??? that is the only thing I want to know!
|
|
Top
|
|
|
|
#163640 - 2006-06-26 10:16 PM
Re: How to use InGroup ???
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
Les and Apronk are correct (I did not fully read the post either ) 
WinNT provider does not understand the OU structure and LDAP must be used.
Translate name seems to be the best solution around here for that.
TranslateName() - converts a name from one type to another http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=82426
Edited by NTDOC (2006-06-26 10:17 PM)
|
|
Top
|
|
|
|
#163644 - 2006-06-27 08:58 AM
Re: How to use InGroup ???
|
SASKINN
Fresh Scripter
Registered: 2006-06-06
Posts: 10
|
I try it, and it worked good! THANKS!!!!!
|
|
Top
|
|
|
|
#163647 - 2006-06-28 10:11 PM
Re: How to use InGroup ???
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
Well no I can't do that. It supports the SAM database structure from NT though.
Here is probaby one of the best answers to WinNT vs LDAP that I can find.
http://www.rlmueller.net/WinNT_LDAP.htm
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|