Hi,

LogonUser worked on Xp, but when I upload the code to the site, I got "'A
required privilege is not held by the client"
The server is Windows 2000, even I run the code on local machine using
Windows 2000 pro. I got the same error message, any idea about the
situation?

Monir.

----- Original Message -----
From: "Monir-SCS" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, June 14, 2005 3:43 AM
Subject: Re: [delphi-en] Change NT USER


> Rob Kennedy wrote:
>
> > Call LogonUser to get an access token for the specified user. Then call
> > ImpersonateLoggedOnUser to switch the current thread into that user's
> > context. Execute your function. Finally, call RevertToSelf to get back
> > into the original user's security context and dispose of the access
> > token with CloseHandle.
>
> Thank you for your great answer, that exactly what I am looking for.
>
> > Special privileges are needed to call LogonUser and
> > impersonateLoggedOnUser. The IIS account might not have those privileges
> > by default.
>
> Worked on IIS without changing anything.
>
> Monir.
>
>
> -----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe: [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
>



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to