Access UNC path outside domain, pass credentials

Karel
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
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
0
Comments
-
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions