本文介绍了通过身份验证访问Samba共享,无驱动器映射-C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试建立与需要身份验证的samba共享的连接.我不希望驱动器被映射.共享的凭据将始终相同.一旦通过身份验证,我就可以使用常规路径来使用它.我正在使用C#.net
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
有什么想法吗?我在Google上搜索了一些内容,并阅读了有关模拟"的内容,但我认为它不能满足我的需求.
Any ideas ? I googled some stuff and read up on Impersonation, but I dont think it meets my needs.
预先感谢!
推荐答案
我能够从下面的stackoverflow链接中使用以下问答进行操作:
I was able to get it working with the following Q&A from the stackoverflow link below:
这篇关于通过身份验证访问Samba共享,无驱动器映射-C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!