M
Mong
Hi all,
Well I reckon I've just read through 200 messages on this subject and
tried every combination of every setting the is and I'm still getting
a return of false on IsInRole. Here's my code:
Dim rolUI_Admin as String
Dim wp As WindowsPrincipal
rolUI_Admin = "DOMAIN/DOM_ACL_TestAdmins"
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal)
wp = CType(Thread.CurrentPrincipal, WindowsPrincipal)
If wp.IsInRole(rolUI_Admin) Then
CheckUser = True
End If
I'm using Windows Authentication, Impersonation is off. Active
Directory set to 2000 native mode, Security bit in group is set.
wp.Identity returns correct user, Authenticated is true, and the user
is in the group. Web config contains <allow users="*" /> and <deny
users="?" /> - tried one or the other and both. Is there anything
else? I hope so cos I've done it all and still getting false.
The above code is in a VB module, does that make a difference? Can't
see why it would.
Ok so does anyone have any ideas on something else I can try?
Regards,
Mong
Well I reckon I've just read through 200 messages on this subject and
tried every combination of every setting the is and I'm still getting
a return of false on IsInRole. Here's my code:
Dim rolUI_Admin as String
Dim wp As WindowsPrincipal
rolUI_Admin = "DOMAIN/DOM_ACL_TestAdmins"
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal)
wp = CType(Thread.CurrentPrincipal, WindowsPrincipal)
If wp.IsInRole(rolUI_Admin) Then
CheckUser = True
End If
I'm using Windows Authentication, Impersonation is off. Active
Directory set to 2000 native mode, Security bit in group is set.
wp.Identity returns correct user, Authenticated is true, and the user
is in the group. Web config contains <allow users="*" /> and <deny
users="?" /> - tried one or the other and both. Is there anything
else? I hope so cos I've done it all and still getting false.
The above code is in a VB module, does that make a difference? Can't
see why it would.
Ok so does anyone have any ideas on something else I can try?
Regards,
Mong