Php 可以加入域,但ldapsearch失败
我可以使用以下命令成功地将Ubuntu 12.04加入Active Directory服务器(Windows server 2008 R2),方法是将DirectControl Express设置为中心:Php 可以加入域,但ldapsearch失败,php,active-directory,ldap,Php,Active Directory,Ldap,我可以使用以下命令成功地将Ubuntu 12.04加入Active Directory服务器(Windows server 2008 R2),方法是将DirectControl Express设置为中心: sudo adjoin beh-domain.com 同时,此命令失败: ldapsearch -x -v -W -h 10.25.25.46 ip属于服务器。我不明白为什么。它将失败,并显示以下消息: ldap_initialize( ldap://10.25.25.46 ) filte
sudo adjoin beh-domain.com
同时,此命令失败:
ldapsearch -x -v -W -h 10.25.25.46
ip属于服务器。我不明白为什么。它将失败,并显示以下消息:
ldap_initialize( ldap://10.25.25.46 )
filter: (objectclass=*)
requesting: All userApplication attributes
# extended LDIF
#
# LDAPv3
# base <> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 1 Operations error
text: 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this ope
ration a successful bind must be completed on the connection., data 0, v1db1
# numResponses: 1
我的最终目标是通过PHP web服务内部的AD服务器对用户进行身份验证。默认情况下,2008R2不允许匿名绑定,因此您需要使用AD帐户来执行ldapsearch 你也可以
ldap_initialize( ldap://10.25.25.46 )
SASL/EXTERNAL authentication started
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
additional info: SASL(-4): no mechanism available: