Re: Authorization problem

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 10/26/04


Date: Tue, 26 Oct 2004 09:00:50 -0500

Did you try MACHINE\Administrators or the proper domain suffix? Windows
roles always have a prefix in .NET.

Joe K.

"Nikolay Petrov" <johntup2_nospam_@mail.bg> wrote in message
news:%23hMTZN2uEHA.3624@TK2MSFTNGP09.phx.gbl...
> The following code doesn't produse the expected effect to only allow
> the members of Administrators group to access the web method, it stops
> everyone.
> =========
> <WebMethod(), _
> PrincipalPermission(SecurityAction.Demand, Role:="Administrators")> _
> Public Function HelloWorld() As String
> Return "Hello World"
> End Function
> =========
>
> The web service folder is set to require only Windows Authentication,
> which goes fine. I can get the user credentials whitout any problem.
>
> What is wrong?
> TIA
>



Relevant Pages

  • Re: Authorization problem
    ... > The following code doesn't produse the expected effect to only allow ... > Public Function HelloWorld() As String ... > The web service folder is set to require only Windows Authentication, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Authorization problem
    ... > The following code doesn't produse the expected effect to only allow ... > Public Function HelloWorld() As String ... > The web service folder is set to require only Windows Authentication, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Authorization problem
    ... > The following code doesn't produse the expected effect to only allow ... > Public Function HelloWorld() As String ... > The web service folder is set to require only Windows Authentication, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Authorization problem
    ... > The following code doesn't produse the expected effect to only allow ... > Public Function HelloWorld() As String ... > The web service folder is set to require only Windows Authentication, ...
    (microsoft.public.dotnet.security)