简体   繁体   English

允许通过Active Directory用户使用C#访问文件夹,以及使用Windows资源管理器限制访问

[英]Allow access to folder using C# via Active Directory user and Restrict access using windows explorer

I have some complex need basically related to Active Directory settings. 我有一些基本与Active Directory设置有关的复杂需求。

I have Shared Folder on Server. 我在服务器上有共享文件夹。

We have software installed on the client machines. 我们在客户端计算机上安装了软件。 Now when client save the file, it should be save to the server machine's folder. 现在,当客户端保存文件时,应将其保存到服务器计算机的文件夹中。

I have given Write Access to this folder and the file is being stored properly. 我已授予对该文件夹的写访问权限,并且文件已正确存储。

If I restrict View access then I can't see list of the files from the application. 如果我限制查看访问权限,那么我将看不到该应用程序中的文件列表。

If I am retrieving through the C# program then it should be retrieved. 如果我通过C#程序进行检索,则应该对其进行检索。 And if I see from the windows explorer then it should not be listed. 如果我从Windows资源管理器中看到,则不应列出它。

In short I want that the file read/write should be accessible from software only, but not from windows explorer. 简而言之,我希望文件的读/写只能从软件访问,而不能从Windows资源管理器访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM