Re: Network access from c# code (called from ASP.Net)
From: Yan-Hong Huang[MSFT] (yhhuang_at_online.microsoft.com)
Date: 05/05/04
- Next message: Stefan Richter: "Re: how to get the type of a textbox"
- Previous message: Michael: "Re: Win Form newbie question: how to create a VS.NET Properties-like form?"
- In reply to: Joseph: "Re: Network access from c# code (called from ASP.Net)"
- Next in thread: Joseph: "Re: Network access from c# code (called from ASP.Net)"
- Reply: Joseph: "Re: Network access from c# code (called from ASP.Net)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 05 May 2004 01:52:45 GMT
Hello Jose,
For this question, please refer to this KB artile:
"INFO: Implementing Impersonation in an ASP.NET Application"
http://support.microsoft.com/?id=306158
You can refer to the "Impersonate a Specific User for All the Requests of
an ASP.NET Application" part in this article.
1) Grant the "Act as part of the operating system" privilege to the ASPNET
account (the least privileged account). In this way, you can grant right in
a special location and then undoimpersonate it when finished.
2) Change the account that the Aspnet_wp.exe process runs under. However,
this may not what you want.
Specially, you can Impersonate a user in code according to the other two
methods in that KB article. Please try them and let us know whether it
works for you.
Does that answer your question?
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
- Next message: Stefan Richter: "Re: how to get the type of a textbox"
- Previous message: Michael: "Re: Win Form newbie question: how to create a VS.NET Properties-like form?"
- In reply to: Joseph: "Re: Network access from c# code (called from ASP.Net)"
- Next in thread: Joseph: "Re: Network access from c# code (called from ASP.Net)"
- Reply: Joseph: "Re: Network access from c# code (called from ASP.Net)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|