all groups > iis security > october 2004 >
You're in the

iis security

group:

Impersonate NETWORK SERVICE?


Impersonate NETWORK SERVICE? feelthebreeze NO[at]SPAM gmail.com
10/20/2004 6:47:59 PM
iis security:
Hi,

I have an app pool running as a domain user but I need to make a
certain call in the context of NT AUTHORITY\NETWORK SERVICE. I've
tried using LogonUser() but I'm not sure if it's possible.

Is there anyway to temporarily change from a domain account to the
network service account?

Re: Impersonate NETWORK SERVICE? Wade A. Hilmo [MS]
10/22/2004 2:32:04 PM
Hi Ryan,

In your configuration, you cannot get a Network Service token.

To get a token for the Network Service account, you must be running as local
system, and then you can call LogonUser for the Network Service account with
no password and logon type LOGON32_LOGON_SERVICE.

Note that this is not really an IIS question. If you would like further
information on creating your own token for the Network Service account, you
might try a newsgroup dedicated to Win32 security programming.

Thank you,
-Wade A. Hilmo,
-Microsoft

[quoted text, click to view]

AddThis Social Bookmark Button