can't access file on a remote file server

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a problem that has been doggin me for 2 days now.

I have a web app that needs to access files on another server in the same
domain. but nothing that I have tried has allowed the web app access to the
files.

the system is set up as follows:

Server 2: Windows 2000 server contains report files needed by the webapp

Server 1: Window 2003 server
iis server with website
asp.net dll used to access files on server 2

web.config settings are
<authentication
mode="Windows" />
<identity impersonate="true" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security.Principal.WindowsIdentity.GetCurrent.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(strZipFileName).ToString() & vbCrLf


the output from the system is
User Name: <domain\user name>
File Name: \\uncpath\file.zip
Exists: False

but the file does exist and when I audit the logons on server 2 I am not
seeing attempts by <domain\user name>. instead NT AUTHORITY\ANONYMOUS LOGON
is login on to Sever 2 what happened to impersonation? What am I doing wrong?
 
your configuration will not allow network access due to the 1 hop rule. you
will need to change to kerberos and enable creditial forwarding.

-- bruce (sqlwork.com)
 
thanks Bruce,

I don't have control over the domain controler and can't switch to kerberos.
I've also tried this configuration with no success.and then I granted read access to domain\server1$.
I can see that the server is being logged on and recognized through the
security audits. but it still can not read the files. Can you think of any
other way to get at remote files? FTP maybe?
 

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

Back
Top