Accessing Remote Server using NT and Basic Authentication

J

jswidorski

Hello,

I have an Intranet web server setup using Basic and NT Authentication. I
want to use FileSystemObject to read a directories on a different server. I
keep getting a Path Not Found Error.

IIS Server: METESTWEB
Remote Server \\ABC\Directory\
The remote server has everyone permissions on it so anyone authenticate on it.

Am I doing something wrong? I can access it fine from my computer, others
cannot.

Also, is there a way to use just NT Authentication? I don't want my users
to kave to key their user id and password.

ASP Code:
========
startFolder = "\\ABC\Directory"

Private Sub displayFolder(ByVal folderName)
Set fso = server.CreateObject("Scripting.FileSystemObject")
Set rootFolder = fso.GetFolder(server.MapPath(folderName))

For Each currentFolder In rootFolder.SubFolders
makeLink currentFolder.Path
For Each subFolder In currentFolder.SubFolders
On Error Resume Next
displayFolder subFolder.Path
Next
Next
Set rootFolder = Nothing
Set fso = Nothing
End Sub

Private Sub makeLink(ByVal pathName)
strLinkName = pathName
strLinkName = Replace(strLinkName, "\", "/")

aryDirItem = Split(strLinkName,"/")
strLinkName = Right(strLinkName, Len(strLinkName)-7)
Response.Write "<a href='documents.asp?docFolder=" & pathname &"'>" &
aryDirItem(ubound(aryDirItem)) & "</a><BR>"
End Sub

HTML Code Snippet:
=============
<TD width=300 valign=top><% displayFolder startFolder %></TD>
 
J

jswidorski

Would you happen to have a book recommendation on this topic? As detailed as
this faq may be, I find it IMPOSSIBLE to find an answer.

I would think that using NT Authentication, one would just have to connect
to the UNC and be good to go. Authority should play no part as the user has
been validated and the path found.

As permissions go on the UNC. Everyone has authority to atleast read the
directory.

Thanks,...John Swidorski
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top