Impersonation error "A required privillege is not held by the client"

From: Hethu Nanayakara (hethu@lanka.com)
Date: 12/30/02


From: "Hethu Nanayakara" <hethu@lanka.com>
Date: Mon, 30 Dec 2002 16:38:12 +0600

I want to access a UNC shared folder from a WebService.
To do this, I impersonate the Asp.NET process in Web.config as below:

    <identity impersonate="true" userName="domain\username" password="password" />

The user has Admin rights on the local machine.

However, this generates the following error:

"Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'A required privilege is not held by the client."

Can anyone tell me what I am doing wrong here?
Thanks
Hethu



Relevant Pages

  • Re: client impersonation
    ... While you are able to retrieve the login names of all current ... Why not create a simple client autostart ... tool that makes a request to the webservice with the user's login ... impersonate the client user to have the appropriate rights on the ...
    (microsoft.public.win32.programmer.tapi)
  • RE: Pass through Windows Identity to Web Service
    ... you need to pass the windows identity from the ASP.NET ... I assume that your web application and webservice are on the same server ... **use programmatic impersonate. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: impersonation
    ... 1)if you are using IIS5.1 you can change the user that is impersonate on the ... "Ohad Young" wrote: ... > I need to connect to a remote SQL server from a webservice. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: anonymous access + impersonation
    ... You have to enable Windows integrated auth and disable anonymous access in IIS ... - configure the webservice to run as anonymous access, ... but then Impersonate() doesnt work. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Credentials being lost between servers - out of ideas!
    ... set the webservice to authenticate using Windows auth, ... You have setup the webservice to impersonate using windows auth. ... The same error message is ...
    (microsoft.public.dotnet.framework.aspnet.security)