Newsgroups: microsoft.public.dotnet.security
From: "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kap...@removethis.accenture.com>
Date: Wed, 24 Sep 2003 21:37:22 -0500
Local: Wed, Sep 24 2003 10:37 pm
Subject: Re: WindowsPrincipal.IsInRole not working
A couple of things:
WindowsPrincipal definitely matches group names with "domain\group name" When I've been in a jam with these things, I've used reflection to call the (VB.NET code snippet) Dim id As WindowsIdentity = WindowsIdentity.GetCurrent() Dim idType As Type HTH, Joe K. > VB.Net 2002, developing under Win2k pro, server is running Win2k server
> i am trying to put some role-based security into my application. the > here's a simplified excerpt from my prog: > Public Sub SomeSecuredFeature() > If MyPrincipal.IsInRole("DRS\DRS Administrators") Then > problem is, i can never get a True result for .IsInRole. > the Group name is 'DRS Administrators' and according to AD Users And > i have tried a ludicrous number of permutations of what i *THINK* the name > seriously - i've tried every combination of these various formats for > what am i missing here? > is there NOT a direct correlation between a DC's Groups and a .Net > also, is there some method in .Net to simply query the DC and get a list > any insight would be much appreciated! THANKS! =) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||