Re: Problem retrieving all security groups for user in Active Directory
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 01/17/05
- Next message: dalia caspi: "access error when uploading a file"
- Previous message: Paul Clement: "Re: copy file to remote machine with ASP.NET"
- In reply to: kent.anderson_at_gmail.com: "Problem retrieving all security groups for user in Active Directory"
- Next in thread: kent.anderson_at_gmail.com: "Re: Problem retrieving all security groups for user in Active Directory"
- Reply: kent.anderson_at_gmail.com: "Re: Problem retrieving all security groups for user in Active Directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 16 Jan 2005 23:47:22 -0600
Can you say more about the groups that are missing? Are they all from the
same domain? If there is nesting involved, are all of the groups in the
chain marked with the security-enabled flag?
You might also consider some unmanaged code to inspect the token to see what
SIDs are in it, but I expect it to be the same.
Joe K.
<kent.anderson@gmail.com> wrote in message
news:1105936817.235859.52890@z14g2000cwz.googlegroups.com...
> Hello
> I am currently trying to retrieve all security groups from active
> directory for the logged in user on an ASP.Net page using C#. I am
> using refection to do this. The following code will return some of
> the security groups but not all:
>
> MethodInfo getroles = typeof(WindowsIdentity).GetMethod("GetRoles",
> BindingFlags.Instance | BindingFlags.NonPublic);
> string[] roles = (string[])getroles.Invoke(windowsPrincipal.Identity,
> null);
>
> The page is currently set to anonymous access with impersonation turned
> on. I also tried the whoami /groups command under the user's security
> context and retrieved the same list. Why would some of the security
> groups show and others not?
>
- Next message: dalia caspi: "access error when uploading a file"
- Previous message: Paul Clement: "Re: copy file to remote machine with ASP.NET"
- In reply to: kent.anderson_at_gmail.com: "Problem retrieving all security groups for user in Active Directory"
- Next in thread: kent.anderson_at_gmail.com: "Re: Problem retrieving all security groups for user in Active Directory"
- Reply: kent.anderson_at_gmail.com: "Re: Problem retrieving all security groups for user in Active Directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|