472,328 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Impersonation in remote file server

Dear all,

How can I access files in remote file server through my ASP.NET application
only, but deny all other users? I have added
<identity impersonate="true"
userName="test"
password="123abc" />
in web.config, but I cannot browse the folder by browse button (i.e. <INPUT
type=file runat="server") when the folder just allow access by user test.

Anything else I should do?
Thanks a lot.
Nov 19 '05 #1
6 2311
Hi Philip:

The impersonation setting will not help you here, because when the
user clicks the button to browse folders they will be contacting the
folder with thier browser and thier credentials directly - ASP.NET is
not involved at that point.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 6 Jun 2005 18:54:02 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
Dear all,

How can I access files in remote file server through my ASP.NET application
only, but deny all other users? I have added
<identity impersonate="true"
userName="test"
password="123abc" />
in web.config, but I cannot browse the folder by browse button (i.e. <INPUT
type=file runat="server") when the folder just allow access by user test.

Anything else I should do?
Thanks a lot.


Nov 19 '05 #2
Thanks Scott.
I need to save the UNC path of files at file server. How can I involve
ASP.NET and impersonate to get the path?

Thanks again.

"Scott Allen" wrote:
Hi Philip:

The impersonation setting will not help you here, because when the
user clicks the button to browse folders they will be contacting the
folder with thier browser and thier credentials directly - ASP.NET is
not involved at that point.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 6 Jun 2005 18:54:02 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
Dear all,

How can I access files in remote file server through my ASP.NET application
only, but deny all other users? I have added
<identity impersonate="true"
userName="test"
password="123abc" />
in web.config, but I cannot browse the folder by browse button (i.e. <INPUT
type=file runat="server") when the folder just allow access by user test.

Anything else I should do?
Thanks a lot.


Nov 19 '05 #3
I suppose you could use stuff from System.IO like the Directory and
File classes to provide a list of directories in an ASP.NET page, like
in a DataGrid. Those requests to list directories would come from
ASP.NET and the server. Would that be helpful?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 7 Jun 2005 07:47:17 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
Thanks Scott.
I need to save the UNC path of files at file server. How can I involve
ASP.NET and impersonate to get the path?

Thanks again.

"Scott Allen" wrote:
Hi Philip:

The impersonation setting will not help you here, because when the
user clicks the button to browse folders they will be contacting the
folder with thier browser and thier credentials directly - ASP.NET is
not involved at that point.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 6 Jun 2005 18:54:02 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
>Dear all,
>
>How can I access files in remote file server through my ASP.NET application
>only, but deny all other users? I have added
> <identity impersonate="true"
> userName="test"
> password="123abc" />
>in web.config, but I cannot browse the folder by browse button (i.e. <INPUT
>type=file runat="server") when the folder just allow access by user test.
>
>Anything else I should do?
>Thanks a lot.



Nov 19 '05 #4
Thanks again.

I try use System.IO to browse files. I can get all logical drives and
folders and pass credential successfully. However, I can just browse files in
web server or servers at same network, can I browse files at client side or
servers at same network with clients but not web server? It is because I
would like just save the hyperlink of files at client side. Is it possible?

Thanks.

"Scott Allen" wrote:
I suppose you could use stuff from System.IO like the Directory and
File classes to provide a list of directories in an ASP.NET page, like
in a DataGrid. Those requests to list directories would come from
ASP.NET and the server. Would that be helpful?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 7 Jun 2005 07:47:17 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
Thanks Scott.
I need to save the UNC path of files at file server. How can I involve
ASP.NET and impersonate to get the path?

Thanks again.

"Scott Allen" wrote:
Hi Philip:

The impersonation setting will not help you here, because when the
user clicks the button to browse folders they will be contacting the
folder with thier browser and thier credentials directly - ASP.NET is
not involved at that point.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 6 Jun 2005 18:54:02 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:

>Dear all,
>
>How can I access files in remote file server through my ASP.NET application
>only, but deny all other users? I have added
> <identity impersonate="true"
> userName="test"
> password="123abc" />
>in web.config, but I cannot browse the folder by browse button (i.e. <INPUT
>type=file runat="server") when the folder just allow access by user test.
>
>Anything else I should do?
>Thanks a lot.


Nov 19 '05 #5
On Wed, 8 Jun 2005 20:38:02 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
Thanks again.

I try use System.IO to browse files. I can get all logical drives and
folders and pass credential successfully. However, I can just browse files in
web server or servers at same network, can I browse files at client side or
servers at same network with clients but not web server? It is because I
would like just save the hyperlink of files at client side. Is it possible?

I'm not quite sure I follow the question, but you won't be able to
browse files on the client machine from the server. You could send
links to files you find down to the server.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #6
Thanks Scott.

I also do think that it is impossible to view the files at client side.

"Scott Allen" wrote:
On Wed, 8 Jun 2005 20:38:02 -0700, "Philip Lee"
<Ph*******@discussions.microsoft.com> wrote:
Thanks again.

I try use System.IO to browse files. I can get all logical drives and
folders and pass credential successfully. However, I can just browse files in
web server or servers at same network, can I browse files at client side or
servers at same network with clients but not web server? It is because I
would like just save the hyperlink of files at client side. Is it possible?

I'm not quite sure I follow the question, but you won't be able to
browse files on the client machine from the server. You could send
links to files you find down to the server.

--
Scott
http://www.OdeToCode.com/blogs/scott/

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CJ | last post by:
Hi anyone. Does anyone know of issues regarding impersonation in VB .NET with regards to accessing remote WMI information? I have a wrapper...
12
by: Anil Krishnamurthy | last post by:
We have an ASP.NET application that uses COM objects through Interop. The web application requires access to network and database resources and...
2
by: Beamer310 | last post by:
I really need help with this. I pass an xml string to a web service that sits on a remote machine. Part of the process is to read the xml and...
2
by: Jon L. Lovesky | last post by:
Hello all, I am attempting to access a remote folder from an asp.net application (all within the same domain). The application is configured for...
7
by: Bonj | last post by:
Hi I made a naff web application which uses the impersonation method in MSDN (can't find it now, but it basically revolves around creating a token...
2
by: Sharon | last post by:
Hi to all. I have two Impersonation problems: 1. When using my app. from a remote computer, the aspx page is unable to get information from...
15
by: Patrick | last post by:
I set my web.config as follows: <authentication mode="Windows" /> <identity impersonate="true" /> Logon to my ASP.NET website as a user who can...
26
by: andrew_webby at hotmail | last post by:
Hi Am having a problem with an app I wrote to test patch delivery. I contact a remote PC, and get it to run a patch which is installed on a...
11
by: Phil | last post by:
Hi, I've currently setup a local user as described in: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnne...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.