简体   繁体   English

从 Blazor 客户端模块查询本地 Active Directory?

[英]Querying local Active Directory from Blazor client side module?

I have existing .NET code that queries Active Directory once downloaded and running the .exe on a domain connected computer.我有现有的 .NET 代码,一旦下载并在连接域的计算机上运行 .exe,就会查询 Active Directory。

Could my .exe now run as a DDL in the Blazor browser (client-module) against the local domain and avoiding the downloading & running the .exe?我的 .exe 现在可以作为 DDL 在 Blazor 浏览器(客户端模块)中针对本地域运行并避免下载和运行 .exe 吗?

I know the sandboxed environment prevents native file system access, but would it prevent LDAP queries running?我知道沙盒环境会阻止本机文件系统访问,但它会阻止 LDAP 查询运行吗?

The standard answer is no .标准答案是否定的

Blazor-in-the-Browser is held to the same limitations as JavaScript. Blazor-in-the-Browser 受到与 JavaScript 相同的限制。
It's not a technical problem but a security issue.这不是技术问题,而是安全问题。

You can of course use Blazor-on-the-Server, as long as that server has access to your AD.你当然可以使用 Blazor-on-the-Server,只要该服务器可以访问你的 AD。

Your users (on an intranet with good connections) won't notice the difference.您的用户(在具有良好连接的 Intranet 上)不会注意到差异。

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

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