Re: User.IsInRole

From: Jason Watts (jawatts@pacbell.net)
Date: 06/24/02


From: "Jason Watts" <jawatts@pacbell.net>
Date: Mon, 24 Jun 2002 13:19:31 -0700


try

User.IsInRole("mydomain\Administrators")

"Colin" <colinjwhite74@hotmail.com> wrote in message
news:10be801c218c5$9f912a30$9be62ecf@tkmsftngxa03...
> I have the following setup:
> -IIS Security = NT Authentication
> -web.config = <identity impersonate = "true" />
>
> running "Response.Write(User.Identity.Name)"
> will return (mydomain\login)
>
> I am an admin on the machine. If I run
> "Response.Write(User.Isinrole("Administrators"))"
> it returns false
>
> I am ultimately trying to block visibility and disable
> certain controls based on the user. I have a "Managers"
> group on the webserver, but I cannot seem to get my app
> to recognize that the user is part of this group using
> the above method. ???????????? Can anyone shed some more
> light on how to go about this? Thanks :)



Relevant Pages

  • Re: IIS / OWA
    ... Windows integrated authentication will not work in some ... use Basic + SSL should serve your security ... I have IIS setup with Integrated ...
    (microsoft.public.inetserver.iis.security)
  • User.IsInRole
    ... I have the following setup: ... -IIS Security = NT Authentication ... I am an admin on the machine. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Custom implementation for User.IsInRole??
    ... I have an app where im using FormsAuthenticaton, ... authentication against a users table in my db. ... the web.config security section? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Solaris Security Summary
    ... Administering Security on the Solaris OE ... Configuration control, facility management, and system ... Authentication: The ability to prove who you are. ...
    (comp.unix.solaris)
  • Re: Enabling telnet, ftp, pop3 for root...
    ... Where did I say ANYTHING about not using authentication. ... You're presenting it like direct root login would be a total security ... DON'T have access to the port. ...
    (alt.os.linux)