Re: Help with IsInRole
From: Chris (Chris_at_discussions.microsoft.com)
Date: 09/21/04
- Next message: One Handed Man \( OHM - Terry Burns \): "Re: CredentialCache.DefaultCredentials not working!!!!!"
- Previous message: ts96gt: "Different User Context returned in high volume application"
- In reply to: Joseph E Shook [MVP - ADSI]: "Re: Help with IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
>
>
>
>
>
>
>
>
- Next message: One Handed Man \( OHM - Terry Burns \): "Re: CredentialCache.DefaultCredentials not working!!!!!"
- Previous message: ts96gt: "Different User Context returned in high volume application"
- In reply to: Joseph E Shook [MVP - ADSI]: "Re: Help with IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|