Access UNC path outside domain, pass credentials

KarelKarel Member Posts: 12
Hello

I have a NAV server and a WEB server in the same datacenter; but in different domains.

I can write "lan 2 lan" from the NAV server to the WEB server, but I have to enter my credentials for the UNC path on the WEB server.

Is it possible in my C/SIDE code to pass credentials when accessing the UNC path?

I don't want to map a drive or use a shell/batch command. I just want to use code or a native automation to access the UNC path and pass the credentials.

Is this possible?

Thanks,
Karel

Comments

  • jlandeenjlandeen Member Posts: 524
    If you are using NAV 2009 R2 than you should be able to do something like that by using the new .NET Interop feature and write some code to authenticate and copy files across domains using base .NET Classes.

    If you're NOT using NAV 2009 than another option is to write a COM control that does what you need it to do and then reference that in your code.
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
Sign In or Register to comment.