How to call use security credentials when acessing a shared folder?

How to call use security credentials when acessing a shared folder?

  
I Want to access a shared folder in a Windows Filesystem, but in another domain ( thus public access will not work ). What is the best way to pass the necessary credentials?
Hi Pedro,

You can check http://aspalliance.com/336 on how to do this.

The step related to changing the web.config file maps to:

1 - Go to Service Center
2 - Go to edit eSpace page
3 - On the Runtime tab fill Run As username and password
4 - Republish the eSpace

Another option would be to do this impersonation in an extension using the .net methods (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp).

Hope this helps.