ADSI INTERFACE 通过 SOCKS(代理服务器)连接 Active Directory 服务

发布于 2024-12-12 20:01:34 字数 404 浏览 2 评论 0原文

我有一个 VBScript 通过使用 ADSI 接口来操作 Active Directory 用户。该脚本运行良好。这是我们当前的场景,

一台机器---------------------------->活动目录服务器 (使用 VB 脚本)

但是,通过 SOCK(代理服务器)运行相同的脚本时,我们遇到了 1 个问题。场景是:

一台机器 --------------> SOCK(代理服务器)---------->活动目录服务器 (使用VB脚本)

我们发现在第二种情况下,vb脚本不会首先尝试连接到SOCKs服务器,而是直接连接到Active Directory服务器。这就是它失败的原因。

请帮助我解决第二种情况,如何让 ADSI 接口或方法首先通过 SOCKs 服务器。

多谢

I had a VBScript to manipulate the Active Directory users by using the ADSI interface. The script works well. This is our current scenario

a Machine ----------------------------> Active Directory server
(with VB script)

However, we faced 1 problem when running the same script through the SOCKs (Proxy server). The scenario is that:

a Machine --------------> SOCKs (Proxy server) ----------> Active Directory server
(with VB script)

We found out that with second case, a vb script doesn't try to connect to SOCKs server first but connecting to the Active Directory server directly. That's why it FAILED.

Please help me with the second scenario, how to get the ADSI interface or methods to go through the SOCKs server first.

Thanks a lot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

GRAY°灰色天空 2024-12-19 20:01:34

您是否尝试更改 LDAP 字符串:

set obj = GetObject ("LDAP://SocksIPAddr:389/dc=dom,dc=fr, "societe\administrateur", "test.2011")

已编辑 (2011-11-01)

在客户端计算机上,您还可以修改 C:\Windows\System32\drivers\etc\hosts 文件以添加:

SocksIPAddr dom.fr

Do you try to change your LDAP string :

set obj = GetObject ("LDAP://SocksIPAddr:389/dc=dom,dc=fr, "societe\administrateur", "test.2011")

Edited (2011-11-01)

On the client machine, you can also modify C:\Windows\System32\drivers\etc\hosts file in order to add :

SocksIPAddr dom.fr
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文