473,394 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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.CreateObject("Scripting.FileSystemObject")
response.write strPath 'this is here to verify the PATH is actually correct
Set objFolder = objFSO.GetFolder(strPath)

Is it possible to do something like:
Set objFolder = objFSO.GetFolder(strPath) ,{username},{password}
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 2589
On Mon, 3 Jan 2005 16:43:11 -0800, "Dan King"
<da*******@earthlink.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.CreateObject("Scripting.FileSystemObject")
response.write strPath 'this is here to verify the PATH is actually correct
Set objFolder = objFSO.GetFolder(strPath)

Is it possible to do something like:
Set objFolder = objFSO.GetFolder(strPath) ,{username},{password}
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
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...
19
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 =...
5
by: Michael C | last post by:
....on a remote machine? Thanks, Michael C.
1
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...
8
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)...
6
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...
8
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...
1
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,...
1
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? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.