Accessing Samba Share with authentication, No Drive Mapping - C# [duplicate]

人盡茶涼 提交于 2019-12-22 10:26:48

问题


I'm trying to start a connection to a samba share that requires authentication. I do not want the drive to be mapped. The credentials will always be the same for the share. Once it authenticates I can just use a regular path to work with it. I'm using C#.net

Any ideas ? I googled some stuff and read up on Impersonation, but I dont think it meets my needs.

Thanks in Advance!


回答1:


I was able to get it working with the following Q&A from the stackoverflow link below:

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials



来源:https://stackoverflow.com/questions/8317217/accessing-samba-share-with-authentication-no-drive-mapping-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!