Re: ASP.NET impersonation generating configuration error
From: Joe Kaplan (ilearnedthisthehardway@noway.com)
Date: 03/26/03
- Previous message: Stan Huff: "ASP.NET impersonation generating configuration error"
- In reply to: Stan Huff: "ASP.NET impersonation generating configuration error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Joe Kaplan" <ilearnedthisthehardway@noway.com> Date: Tue, 25 Mar 2003 23:12:56 -0600
This burned me after the 1.0 final release.
If you are using Windows 2000 and the default ASP.NET processModel (with the
ASPNET local machine account), you can't use that version of impersonation
that takes credentials. The reason is that the ASPNET account does not have
the SE_TCB_NAME privilege which is required to call LogonUser under Windows
2000. Normally, the only account that has that privilege is SYSTEM. Note
that Windows XP and 2003 Server do not require this privilege to call
LogonUser anymore.
To get around this, you can upgrade your OS or switch your processModel to
run under SYSTEM instead of ASPNET.
Joe K.
"Stan Huff" <stanhuff@yahoo.com> wrote in message
news:eTDrYLy8CHA.2308@TK2MSFTNGP10.phx.gbl...
> When I try to set the config element
> <identity impersonate="true" userName="xxx" password="xxx"/>
>
> in my web.config, I always get a Parse Error of:
>
> 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. '
>
> Which privilege is required and which user needs it? This fails even when
I
> set userName and password to my account and I am an admin on the machine.
> If I remove the userName, password attributes, it works just fine when
> coupled to Windows authentication and in that case it is still using my
> account for execution. What am I doing wrong here?
>
> Thanks,
> Stan
>
>
- Previous message: Stan Huff: "ASP.NET impersonation generating configuration error"
- In reply to: Stan Huff: "ASP.NET impersonation generating configuration error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|