![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all I'm trying to implement access check in my web application based on the current user. I've tried using the IsInRole method but have discoverad that it lacks one important feature. It doens't return TRUE if the user belongs to a domin group added to the local group i'm checking.. Sample: User 'MyUser' is a member of DOMAIN\Developers DOMAIN\Developers is a member of LOCALSERVER\AppUsers When i run myCredential.IsInRole("LOCALSERVER\AppUsers") the return value is False. If I add 'MyUser' to LOCALSERVER\AppUsers excplicitly it works, but that's not an option. Can I somehow get the funtionality of the NetApi32 function NetUserGetLocalGroups with the flag LG_INCLUDE:INDIRECT? Does anyone have any sample code for declaring and using the NetUserGetLocalGroups function in VB.Net? Regards Reine Olofsson Developer |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |