ADSI INTERFACE 通过 SOCKS(代理服务器)连接 Active Directory 服务
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试更改 LDAP 字符串:
已编辑 (2011-11-01)
在客户端计算机上,您还可以修改
C:\Windows\System32\drivers\etc\hosts
文件以添加:Do you try to change your LDAP string :
Edited (2011-11-01)
On the client machine, you can also modify
C:\Windows\System32\drivers\etc\hosts
file in order to add :