Runtime Impersonation

S

Snig

Hi all

I need to implement Runtime (Conditional) Impersonation in one of my ASP.NET
Pages.

If I use the <identity impersonate="true" /> in web.config file, it works
fine.

But in code, while I try to Impersonate I get Win32 error. I am using
"Logon" Win32 API for get a specific token. But this API is returning error
1314 : A required privilege is not held by the client

I tried to resolve it by assinging the most probable Security priviledges to
the "ASPNET" account by "Local Security Policy" snap-in. But nothing worked.

Can anybody please help me ?

Thanx in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,095
Messages
2,570,616
Members
47,232
Latest member
helpplease!

Latest Threads

Top