我尝试使用php 5.2.17连接到公司网络中的LDAP服务器,并在IIS中的一个php服务器上得到此错误(请注意,我已经在其他服务器上运行了该脚本,它工作得很好……所以它必须与配置有关...):
resource(1) of type (ldap link) Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server inC:\Inetpub\wwwroot\websit
我刚刚开始学习LDAP和Windows Server 2012。我已经设法让我的PHP代码使用管理员帐户绑定到Active Directory,但是我似乎可以使用ldap_add函数创建一个新用户。我已经安装了具有企业根证书的证书颁发机构,并且我能够使用带有R2连接的ldp.exe连接到AD。<?contact LDAP server in C:\inetpub\