Active Directory on local server and intranet on external server

爷,独闯天下 提交于 2019-12-12 01:54:34

问题


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

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.

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?


回答1:


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



来源:https://stackoverflow.com/questions/2780587/active-directory-on-local-server-and-intranet-on-external-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!