简体   繁体   English

本地服务器上的Active Directory和外部服务器上的Intranet

[英]Active Directory on local server and intranet on external server

I have a local Active Directory server and a external web server where my intranet is located. 我的Intranet位于本地Active Directory服务器和外部Web服务器。

$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.");

When I run this on a local web server it succesfully binds the connection. 当我在本地Web服务器上运行它时,它成功绑定了连接。 If I run the same code on the external server its unable to bind the ldap connection. 如果我在外部服务器上运行相同的代码,则无法绑定ldap连接。 Both port 389 and 636 is open on the AD server. 端口389和636在AD服务器上均打开。

I've tried google for an answer, but all the tutorials is for Active Directory and webserver on the same server. 我已经尝试过谷歌的答案,但所有教程都是针对同一服务器上的Active Directory和Web服务器。 Is this even possible? 这有可能吗?

Regarding LDAPS, this is often related to an invalid ssl certificate. 关于LDAPS,这通常与无效的ssl证书有关。 A workaround for that is described here: LDAP and PHP connection failure 此处描述了一种解决方法: LDAP和PHP连接失败

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

相关问题 PHP LDAP连接可从外部服务器对Active Directory进行身份验证 - PHP LDAP Connection to Authenticate against Active Directory from External Server 使用Active Directory对Intranet站点上的用户进行身份验证 - Using active directory to authenticate users on intranet site 如何从Intranet服务器在外部服务器之间同步数据? - How can I synchronise data between an external server from Intranet server? 服务器到服务器>检索并将远程zip文件解压缩到本地服务器目录 - Server to Server > Retrieve and extract a remote zip file to local server directory 从外部拥有的服务器检查目录或文件 - Checking directory or file from external owned server 目录已创建,但在本地服务器上不存在-PHP - Directory is created but do not exist on local server - PHP 在PHP的Intranet中的文件服务器上上传文件 - Upload files on file server in intranet in php 本地目录查看器和从Intranet浏览器拖放 - Local directory viewer & Drag and Drop from intranet browser PHP-服务器在云中时如何使用活动目录进行身份验证 - PHP - How to authenticate with active directory when server is in cloud 将Windows Server中的Active Directory与Laravel 5集成为多个用户角色 - Integrating Active Directory in Windows Server with Laravel 5 for multiple user roles
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM