Re: Determine AD group membership



GetTokenInformation(Token, TokenGroups, Groups, GroupsLength,
&ReturnLength);

where you receive `Token' from any of the token-related functions, such as
`LogonUser' or `OpenProcessToken' or `ImpersonateNamedPipeClient' used in
conjunction with `OpenThreadToken'.

"TimAlsop" <TimAlsop@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5B2A3E58-0817-412D-871F-2C7733545CBF@xxxxxxxxxxxxxxxx
I have a Windows application that runs on Windows 2000 or XP workstations.
This application needs to find out which groups the logged on user is a
member of.

I can see that we can use ADSI, or LDAP to find group membership
information
stored in AD for a specific user, but it seems like there must be a better
way. It is my understanding that when a user logs on the group membership
information is transmitted to the users workstation inside Kerberos
tickets,
so it must be available somewhere on workstation. Is there a Windows API
to
allow me to get this group membership info, or do I need to decode the
Kerberos tickets PAC data to get this info ?

Thanks,
Tim


.