User.IsInRole

From: Colin (colinjwhite74@hotmail.com)
Date: 06/21/02


From: "Colin" <colinjwhite74@hotmail.com>
Date: Thu, 20 Jun 2002 18:47:38 -0700


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: High Security W2k setup
    ... functionality versus security. ... to allow admin account to be locked out to network logon, ... > im not confident to my yet my setup what im have now. ... > create new admin login ...
    (microsoft.public.win2000.security)
  • 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)
  • Re: User.IsInRole
    ... > I have the following setup: ... > -IIS Security = NT Authentication ... but I cannot seem to get my app ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to enforce security on hiddent objects?
    ... I would like to setup some security so that only an admin ... Note that distributing an MDE won't protect tables, queries, and macros; ...
    (microsoft.public.access.formscoding)
  • Where does prj list come from for File->Open
    ... both setup the same for security. ... projects and published them and she and I (but I'm the admin) can see them ... insider her File->Open menu? ...
    (microsoft.public.project.pro_and_server)