Re: Authorization problem
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 10/26/04
- Next message: Nikolay Petrov: "Re: Authorization problem"
- Previous message: Nikolay Petrov: "Authorization problem"
- In reply to: Nikolay Petrov: "Authorization problem"
- Next in thread: Nikolay Petrov: "Re: Authorization problem"
- Reply: Nikolay Petrov: "Re: Authorization problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>
- Next message: Nikolay Petrov: "Re: Authorization problem"
- Previous message: Nikolay Petrov: "Authorization problem"
- In reply to: Nikolay Petrov: "Authorization problem"
- Next in thread: Nikolay Petrov: "Re: Authorization problem"
- Reply: Nikolay Petrov: "Re: Authorization problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|