Re: Check group membership, the sequel

From: Sameh Ahmed (essoplus_at_hotmail.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 22:40:19 +0200

unfortunately this is a 2000 Domain.
and tokenGroups on rarely mentioned on the MSDN, I will keep searching till
I get something useful on how to use that attribute.
Regards
Thanks Joe
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:O7$AScJGFHA.2824@tk2msftngp13.phx.gbl...
> So, you need to look up the group membership for a user that you don't
> have a security token for? That is a little bit harder.
>
> The absolute best way to deal with that situation is to use the protocol
> transition (S4U) feature of Windows Server 2003 AD by creating a
> WindowsIdentity for the use with their userPrincipalName. You don't need
> a password for this. You get a lower privileged token, but you can still
> create a WindowsPrincipal that can be used for role checks.
>
> If you don't have a native mode 2003 AD, then this problem is harder to
> deal with. You'll probably need to do some directory services code to do
> the group membership expansion (although the AzMan APIs may be an option
> as well). The secret with LDAP calls is to use the tokenGroups attribute
> which is a calculated attribute that contains the fully expanded security
> group membership for the object.
>
> Joe K.
>
> "Sameh Ahmed" <essoplus@hotmail.com> wrote in message
> news:uokivaIGFHA.2156@TK2MSFTNGP10.phx.gbl...
>>I need to specify a different use the one used to run the code
>>
>> "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
>> wrote in message news:u1k4QLEGFHA.1392@tk2msftngp13.phx.gbl...
>>> IsInRole supports fully nested security group membership (assuming you
>>> are on a 2000 native AD domain that supports nested groups). You don't
>>> have to do anything extra to make this work.
>>>
>>> Joe K.
>
>



Relevant Pages

  • Re: Check group membership, the sequel
    ... > WindowsIdentity for the use with their userPrincipalName. ... You'll probably need to do some directory services code to do ... > the group membership expansion (although the AzMan APIs may be an option ... The secret with LDAP calls is to use the tokenGroups attribute ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DirectorySearcher - SearchResult - User Groups
    ... Joe K. ... > determine group membership. ... > public string IsAuthenticatedGetGroups (string Domain, string UserName, ... I think you should consider using tokenGroups ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: DirectorySearcher - SearchResult - User Groups
    ... I looked up tokenGroups, and they definitely look like a better way to ... determine group membership. ... I consolidated the authentication, and the membership checking into the same ... public string IsAuthenticatedGetGroups (string Domain, string UserName, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Active directory: Get users associated with groups
    ... >those users associated with that group using Active Directory using LDAP?? ... Insepect the user's "memberOf" property ... inspect the user object's "tokenGroups" attribute (which is a ...
    (microsoft.public.dotnet.general)