473,785 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I get a directory listing on remote server?

I have a few ASP pages that run great on a local machine. They read folder
content then display the information in the browser.
I would like to be able to read the same data from several remote servers.
The problem is the remote servers are all in different domains with no
trusts between them, so I cannot run the site as a domain user. I currently
have a login page that gathers user names and passwords. Can I somehow use
those to connect to a remote server? When I look in the Security logs on the
remote server, I can see a login failure from the anonymous IIS user the web
site runs as.

My code currently fails at the third line here:
Set objFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
response.write strPath 'this is here to verify the PATH is actually correct
Set objFolder = objFSO.GetFolde r(strPath)

Is it possible to do something like:
Set objFolder = objFSO.GetFolde r(strPath) ,{username},{pa ssword}
so I can connect as the user that logs into the site?

BTW, the users already authenticate to their respective domains, and the
users would already have access to the remote shares.
--
__o
_-\<,
(_)/(_)____
Jul 22 '05 #1
1 2611
On Mon, 3 Jan 2005 16:43:11 -0800, "Dan King"
<da*******@eart hlink.net> wrote:
I have a few ASP pages that run great on a local machine. They read folder
content then display the information in the browser.
I would like to be able to read the same data from several remote servers.
The problem is the remote servers are all in different domains with no
trusts between them, so I cannot run the site as a domain user. I currently
have a login page that gathers user names and passwords. Can I somehow use
those to connect to a remote server? When I look in the Security logs on the
remote server, I can see a login failure from the anonymous IIS user the web
site runs as.
This is all Windows user accounts and permissions. You need to
provide access for the user account that IIS is running as, either
anonymous or the user if you are authenticating.
My code currently fails at the third line here:
Set objFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
response.wri te strPath 'this is here to verify the PATH is actually correct
Set objFolder = objFSO.GetFolde r(strPath)

Is it possible to do something like:
Set objFolder = objFSO.GetFolde r(strPath) ,{username},{pa ssword}
so I can connect as the user that logs into the site?
No. But you could use a share that pre-exists.
BTW, the users already authenticate to their respective domains, and the
users would already have access to the remote shares.


If you're using Windows Authentication in IIS then this should allow
access.

Jeff
Jul 22 '05 #2

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

Similar topics

2
17641
by: Dean | last post by:
Hi I've got a question relating to using Javascript on an Intranet. I have a directory with a list of files in the format week36.xls, week37.xls and I want to write a script that will scan all the files in the directory and select the one with the highest week number then display in the browser window. A brief search hasn't revealed any code to do this so I just want to know if it is possible and what the function names are that...
19
3315
by: SU News Server | last post by:
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = listing = os.listdir(directory)
5
2486
by: Michael C | last post by:
....on a remote machine? Thanks, Michael C.
1
4755
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I have a page in a folder (under anonymous authentication in IIS6) that has a link on it that...
8
11066
by: gil | last post by:
Is it possible to prevent a browser from listing the entire contents of a folder? The site, is hosted on my ISP with the following layout- site/ "user name from ISP" pagefile (dir) index.html site/pagefile/
6
5721
by: Pete Kane | last post by:
Hello all, how do I get a directory listing from a web server ?, I'm playing around with reflection and "Click once" deployment and would like to loop through a directory listing and use Assembly.LoadFrom(dllname) many thanks
8
6953
by: dougawells | last post by:
Hi - I'm hoping for help with the auto-generation of a hyperlinked listing of all files in a directory. The server I use does not auto-generate this. So, when someone comes to this directory and thus opens index.htm, I want that file to show a listing of all files in the directory with hyperlinks to them. Thanks for the help, Doug
1
2913
by: deciacco | last post by:
I'm trying to write a utility that will compare a local directory and it's subdirectories with a directory on an ftp server. The .net directory and file classes could be useful on the local side, but I don't think I can use them for the ftp side, because all I will have is a parsed list. At this point I'm thinking of a custom VirtualFile class that has the file/directory information such as: filename, filedate, filetime, type (as in...
1
5673
by: Steve | last post by:
My site is hosted on a Godaddy reseller site. Godaddy only allows the use of Curl to access remote sites. What is the method for listing a directory after connecting to the site with Curl? I've already tested my code for connecting but how do I list whats in the directory. The purpose is to compare the list to the filenames in my database.
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10162
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.