1. Install openldap
I have compiled and installed it before and encountered many pitfalls. In the end, I chose to use yum for the convenience of installation.
`yum install openldap openldap-servers openldap-clients openldap-devel compat-openldap`
The back-end database of openldap is Berkeley DB, so this also needs to be installed. When compiling and installing, there were strict requirements on the version of this database, which was a huge pitfall. .
`yum install db4 db4-utils`
Although openldap has provided enough commands to create, search, and modify data, it is still not as intuitive as the web page display. Here we use phpldapadmin.