RE: Identity crisis on a WS

From: Luis (Luis_at_discussions.microsoft.com)
Date: 06/10/04


Date: Thu, 10 Jun 2004 10:11:01 -0700

Luke,

I checked with "System.Security.Principal.WindowsIdentity.GetCurrent().Name" and in fact I do have the DOMAIN\USER combination that I expected (a user that is a memeber of the administrators group).
I eve andded this user to the Act as part of the operating system key in Local Security Policies.

I am still geting the same ERROR_ACCESS_DENIED 5 (0000005) err msg.

Do you have any suggestions?

Luis

"[MSFT]" wrote:

> Hi Luis,
>
> You may add a web method and return following string to see the account
> your web service run with:
>
> System.Security.Principal.WindowsIdentity.GetCurrent().Name
>
> If it is not the administrator account you planed, you may try impersonate
> in the web service. Here is a article about this:
>
> INFO: Implementing Impersonation in an ASP.NET Application
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306158
>
> Luke
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>



Relevant Pages

  • RE: Identity crisis on a WS
    ... You may add a web method and return following string to see the account ... If it is not the administrator account you planed, you may try impersonate ... in the web service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Event Log Write Access error.
    ... If that user is a member of Administrators group, then the web service can write into Event Log. ... If using SIDs in the registry is the only way, how can I get the SID for that particular user to enter into the registry? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • using impersonation
    ... I wanted to use impersonation in an asp.net web service application. ... If the user is not added to the administrators group of the computer it ... Medical Informatics Research Center ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Administrator and Adminisrators
    ... I've encountered a very small sampling of installation routines that had actually been written so that they would work *only* when run from the built-in Administrator account, and then only if the account hadn't been renamed, as is a common security practice. ... When installation routines are properly written, there is no functional difference between the built-in Administrator account and any other accounts that are members of the local Administrators group. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: using impersonation
    ... I wanted to use impersonation in an asp.net web service application. ... If the user is not added to the administrators group of the computer it ... Microsoft MVP ...
    (microsoft.public.dotnet.framework.aspnet.security)