文件共享模拟 [英] File Share Impersonation

查看:54
本文介绍了文件共享模拟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

   我想知道是否有人模仿一种文件共享或本地文件夹的方法.

     I'm wondering if anyone know of a way to impersonation a file share or local folder.

基本上,我正在尝试寻找一种创建内容的方法看起来像Windows在服务器上的共享.这甚至可能是工作站上的本地文件夹.但是访问时 对于任何人,服务都会根据数据库中的安全性向用户提供文件列表.

Basically I’m trying to find a way to create what looks like a Window’s share on a server. This could even be a local folder on the workstation. However when accessed by anyone, a service would give the user the list of file based on security located in a database.

对用户而言,他们会看到这些文件,就好像它们是文件位于共享中.实际上,这些文件可能位于其他多个服务器上,甚至位于另一个目录中 在同一台服务器上.

To user they would see the files as if these are the file located in the share. In reality the files could be on multiple other servers or even in another directory on the same server.

 

这里是一个示例:

工作站上的UserA单击指向其上文档的链接桌面.

UserA on a workstation clicks a link to a document on their desktop.

路径为 \\ serverX \ Share \ doc.docx

The Path is \\serverX\Share\doc.docx

Doc.docx实际上不在serverX上.它在serverZ上.

Doc.docx isn’t actually located on serverX. It’s on serverZ.

代码拦截了此请求并为用户提供了doc.docx从serverZ与用户看到的内容无缝连接,然后Word正常打开文档.  

The code intercepts this request and gives the user doc.docx from serverZ seamless to what the user sees then Word opens the document normally.  

 

或者用户可以浏览到 \\ serverX \ Share \

Or the user may browse to \\serverX\Share\

在这种情况下,我想向用户显示他们可以访问的文档.

让我们说可以访问20个文档.但是文件可能位于以下位置.

\\ serverZ \ Share \

\\ server4 \ Share \

\\ server23 \ Share \

我知道Windows DFS已经做了类似的事情.但这必须是独立的.  

I know Windows DFS already does something similar. But this needs to be self-contained.  

有人尝试过这样做吗?

Has anyone ever tried doing something like this?

推荐答案

据我所知,无法满足您的要求.我们无法自定义文件资源管理器,建议您使用Windows DFS,这似乎是唯一的选择.

As far as I know, there is no way to achieve your requirement. We could not custom File Explorer, and I would suggest you use Windows DFS which seems to be the only option.

最好的问候,

爱德华


这篇关于文件共享模拟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆