本地服务器上的Active Directory和外部服务器上的Intranet [英] Active Directory on local server and intranet on external server

查看:63
本文介绍了本地服务器上的Active Directory和外部服务器上的Intranet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个本地Active Directory服务器和一个内部Web所在的外部Web服务器.

I have a local Active Directory server and a external web server where my intranet is located.

$ad = ldap_connect("ldap://ip-address") or die("Couldn't connect to AD!");
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
$bd = ldap_bind( $ad, "user@domain", "password") or die("Can't bind to server.");

当我在本地Web服务器上运行此命令时,它成功绑定了连接.如果我在外部服务器上运行相同的代码,则无法绑定ldap连接. AD服务器上的端口389和636均已打开.

When I run this on a local web server it succesfully binds the connection. If I run the same code on the external server its unable to bind the ldap connection. Both port 389 and 636 is open on the AD server.

我已经尝试过用google搜索答案,但是所有教程都是针对同一服务器上的Active Directory和网络服务器的.这有可能吗?

I've tried google for an answer, but all the tutorials is for Active Directory and webserver on the same server. Is this even possible?

推荐答案

关于LDAPS,这通常与无效的ssl证书有关.此处描述了一种解决方法: LDAP和PHP连接失败

Regarding LDAPS, this is often related to an invalid ssl certificate. A workaround for that is described here: LDAP and PHP connection failure

这篇关于本地服务器上的Active Directory和外部服务器上的Intranet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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