Jump to content

Featured Replies

Posted

I am facing issue with the windows API NetUserGetLocalGroups ( used the

LG_INCLUDE_INDIRECT) and NetUserGetGroups to get all the groups the user

belongs too. But for some reason I end up getting only the top level

information and all the nested information to which the user belongs too.

Ex:

 

Group Name: VM1WIN2K31\Administrators

Group Name: VM1WIN2K31\None

 

 

I have tried other option by setting up the security context ( which

involves user name and password) on client side and using this information

on the server side and from GetTokenInformation I am able to retrieve all the

information.

Ex:

Group Name: VM1WIN2K31\Administrators

Group Name: VM1WIN2K31\None

Group Name: VM1WIN2K31\Everyone

Group Name: VM1WIN2K31\Users

Group Name: NT AUTHORITY\NETWORK

Group Name: NT AUTHORITY\Authenticated Users

Group Name: NT AUTHORITY\This Organization

Group Name: NT AUTHORITY\NTLM Authentication

 

I know if I have the user name and password, I could user the LogonUser

context and then from the token I could get the information.

 

But the issue is I don't have the user password and how can I query all the

groups the user belongs too by just using the NetUserGetLocalGroups and

NetUserGetGroups API.

 

 

Could anybody throw some light on this one. Appreciate your help on this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...