Impersonate NETWORK SERVICE?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Impersonate NETWORK SERVICE?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Impersonate NETWORK SERVICE?  
Ryan Williams


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-21-04 01:47 AM

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?

Thanks





[ Post a follow-up to this message ]



    Re: Impersonate NETWORK SERVICE?  
Wade A. Hilmo [MS]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-22-04 10:53 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

"Ryan Williams" <feelthebreeze@gmail.com> wrote in message
news:e87a1b57.0410201747.1f492586@posting.google.com...
> 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?
>
> Thanks







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:42 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register