Re: Help with IsInRole

From: Chris (Chris_at_discussions.microsoft.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 06:59:03 -0700

Thank you sir!

"Joseph E Shook [MVP - ADSI]" wrote:

> Administrators is one of the special BUILTIN Group. It is like a
> localized kind of special domain. On your web server it is most likely
> added to the users session token when authenticated against IIS because
> the user is a member of your USA\Domain Admins group which has been
> added to your Web Servers BUILTIN\Administrators group. If that is the
> case then use:
>
> User.IsInRole("BUILTIN\Administrators")
>
> In C#
> User.IsInRole(@"BUILTIN\Administrators")
>
>
> Or you can use User.IsInRole("USA\Domain Admins").
>
> But there is no USA\Administrators group available at the web server.
>
>
>
>
>
>
>
>



Relevant Pages

  • Re: Jeez... how do I even start ????
    ... > When I would start IIS from the Administrative tools, ... > situation, with the same resolution as described in the msdn article, so ... A lot of these other posts also mentioned the ASPNET user. ... > the web server was running on this machine. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: preventing username enumeration on NT4
    ... Nimda Worm Shows You Can't Always Patch Fast Enough ... should start to investigate less-vulnerable Web server products. ... Microsoft's Internet Information Server (IIS), ...
    (comp.security.misc)
  • Re: preventing username enumeration on NT4
    ... Nimda Worm Shows You Can't Always Patch Fast Enough ... should start to investigate less-vulnerable Web server products. ... Microsoft's Internet Information Server (IIS), ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: preventing username enumeration on NT4
    ... Nimda Worm Shows You Can't Always Patch Fast Enough ... should start to investigate less-vulnerable Web server products. ... Microsoft's Internet Information Server (IIS), ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: preventing username enumeration on NT4
    ... Nimda Worm Shows You Can't Always Patch Fast Enough ... should start to investigate less-vulnerable Web server products. ... Microsoft's Internet Information Server (IIS), ...
    (comp.security.misc)