Download openldap2.2.29.rar, and all the way down.
Then, according to the online configuration slapd.conf:
In the include./schema/core.schema line, add
include ./schema/cosine.schemainclude ./schema /inetorgperson.schemainclude ./schema/nis.schemainclude ./schema/misc.schema
Then test with php, the test code is:
<?php//ldap service address $ldap_host = "ldap://127.0.0.1";//ldap service occupies port $ldap_port = 389; //link ldap server $ldap_conn = ldap_connect($ldap_host, $ldap_port) or die("Can not connect LDAP server .");//Administrator login name $rootdn = 'cn=Manager,dc=my-domain,dc=com';//Password $rootpw = 'secret';//bind user ldap_bind($ldap_conn, $rootdn, $rootpw) ;//or die("Can not binding to LDAP server.");var_dump($ldap_conn);
?>
But the prompt:< Br>
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Protocol error in D:\\virtual\\test.php on line 14resource(2) of type (ldap link)
There is a solution found on the Internet:
Add one sentence to slapd.conf: all Ow bind_v2
Cause (according to openldap official website):
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.
After adding the OpenLDAP Directory Service after joining, it is normal.
win10 defaults to open the web page will use spantan, to be honest, Xiaobian is not too fond of this
Everyone knows that the NumLock key on the computer keyboard is used to open and close the computer
Starting on July 29th, Microsoft began to provide upgrades to the latest Windows 10 systems for genu
win10 upgrade postal bank online banking keyboard protection driver peckp.sys block upgrade solution
Win10 latest technology preview Build 9879 installation experience
Win7 Ultimate has a "No Project Found" error. Try again and re-test it.
What should I do if the $Windows.~BT folder is always 140M when Win10 is upgraded?
Windows can also limit the program to run without group policy.
The new preview version of Win10 Mobile does not push
How to add multiple ips in batches under Windows
Microsoft introduces new Windows 10 security features Device Guard
Windows 10 January Preview Announced New Start Menu
Virtual machine installation Win8 error how to solve
Winxp system notebook settings can not wake up after standby is how is it?
Win10 Edge browser (formerly Spartan browser) how to add URL collection
How to open the screen keyboard in win7 Ultimate computer?
Cool play Win 7 taskbar Show desktop is really different
How to solve the UC browser text overlap?
Win7 system play game prompts "graphics card driver stops responding" how to do
Using my own photos to make cartoon QQ/MSN expressions
Win8 login Skype prompts disk input and output error and can't log in to Skype
Introducing several misunderstandings in the process of optimizing Vista
Win8 shuts down another stunt, let "Win8 shut down" into the right button
Twitter is available in five languages, including Simplified Chinese and Traditional Chinese