Home All Groups Group Topic Archive Search About

Group membership for a user

Author
21 Apr 2006 3:20 PM
Jeff
I'm looking for a .NET Framework class that will allow me to determine
if a specific domain\user is a member of a domain\group.  Any suggestions?

Author
24 Apr 2006 9:18 AM
Vadym Stetsyak
Hello, Jeff!

J> I'm looking for a .NET Framework class that will allow me to determine
J> if a specific domain\user is a member of a domain\group.  Any
J> suggestions?

Take a look at
( http://www.codeproject.com/dotnet/QueryADwithDotNet.asp?df=100&forumid=152653&exp=0&select=1371365 )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Author
25 Apr 2006 8:05 PM
Jeff
Thanks Vlad...

I'd actually stumbled on that article and the example that came the
closest to providing what I was looking for was the Group Users example,
however, what I want it to return is a "user login name" property, not
the "member" property (which apparently consists of first and last names
and may not be unique).

Is there a listing somewhere of the properties that can be loaded?

Thanks again for your help.

Jeff

Vadym Stetsyak wrote:
Show quote
> Hello, Jeff!
>
>  J> I'm looking for a .NET Framework class that will allow me to determine
>  J> if a specific domain\user is a member of a domain\group.  Any
>  J> suggestions?
>
> Take a look at
> ( http://www.codeproject.com/dotnet/QueryADwithDotNet.asp?df=100&forumid=152653&exp=0&select=1371365 )
>
> --
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com
Author
26 Apr 2006 8:44 AM
Vadym Stetsyak
Hello, Jeff!

J> I'd actually stumbled on that article and the example that came the
J> closest to providing what I was looking for was the Group Users example,
J> however, what I want it to return is a "user login name" property, not
J> the "member" property (which apparently consists of first and last names
J> and may not be unique).

J> Is there a listing somewhere of the properties that can be loaded?

You can use the ADSI tool from server support tools to browse properties of objects...

( http://computerperformance.co.uk/w2k3/utilities/adsi_edit.htm )
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Author
26 Apr 2006 8:02 PM
Jeff
Looks like that tool would accomplish what I wanted, but when I go to
install it, it only includes a dll and mcs file in the zip.  I'm running
  Windows 2000 and it tells me "MMC cannot open the selected file" when
I try to load the plug-in.


Show quote
>
> You can use the ADSI tool from server support tools to browse properties of objects...
>
> ( http://computerperformance.co.uk/w2k3/utilities/adsi_edit.htm )
> --
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com

AddThis Social Bookmark Button