You're welcome Alan,
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "A.M-SG" <al******@newsgroup.nospam>
| References: <OG*************@TK2MSFTNGP09.phx.gbl>
<#i**************@TK2MSFTNGP09.phx.gbl>
<hH**************@TK2MSFTNGXA01.phx.gbl>
| Subject: Re: ASPX accesses to network file resources
| Date: Tue, 1 Nov 2005 09:03:08 -0500
| Lines: 75
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <u9**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: toronto-hse-ppp3700327.sympatico.ca 65.95.109.92
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:135226
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| Thank you Steven,
| The article is exactly what I was looking for.
|
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:hH**************@TK2MSFTNGXA01.phx.gbl...
| > Hi Alan,
| >
| > Since the network share in your case only opened to specific AD users
and
| > only one of your pages need to access it, I'm afraid we have to consider
| > using programmatic impersonation as Shawn has mentioned. Here is a kb
| > article which mentioned programmatically impersonate a certain account
| > (through clear username/password):
| >
| > #How to implement impersonation in an ASP.NET application
| >
http://support.microsoft.com/?id=306158
| >
| > Hope helps.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure!
www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | From: "Shawn" <bo********@hotmail.com>
| > | References: <OG*************@TK2MSFTNGP09.phx.gbl>
| > | Subject: Re: ASPX accesses to network file resources
| > | Date: Mon, 31 Oct 2005 19:50:51 +0100
| > | Lines: 21
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
| > | Message-ID: <#i**************@TK2MSFTNGP09.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: 94.80-202-121.nextgentel.com 80.202.121.94
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:135053
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | You can use impersonation. Check out this link:
| > |
| >
http://msdn.microsoft.com/library/de...us/cpref/html/
| > frlrfsystemsecurityprincipalwindowsimpersonationco ntextclasstopic.asp
| > |
| > | Shawn
| > |
| > | "A.M-SG" <al******@newsgroup.nospam> wrote in message
| > | news:OG*************@TK2MSFTNGP09.phx.gbl...
| > | Hi,
| > |
| > | I need an aspx's code behind program access to a network folder which
is
| > | only available for specific active directory user. How can I have that
| > | specific aspx code login into the active directory with specific
| > UID/PWD?
| > |
| > | The rest of ASPX pages in the application don't need to have any
access
| > to
| > | file resources.
| > |
| > | Thank you,
| > | Alan
| > |
| > |
| > |
| > |
| >
|
|
|