Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Protocol error in D:\AppServ\www\others\ldap\index.php on line 16
LDAP bind failed
解决:在slapd.conf 最后加一句:allow bind_v2
原因(据openldap官网):
OpenLDAP Software does not support LDAPv2 (now historic). OpenLDAP 2.x's slapd(8) can be configured to accept a version 2 LDAP Bind request, but expects requesting version 2 to speak a restricted, non-standard variant for LDAPv3 (basically LDAPv3 syntaxes and semantics in LDAPv2 PDUs). To enable this, place the following in your slapd.conf(5) file.