借鉴:
https://book.51cto.com/art/201602/505739.htm
https://www.jb51.cc/bash/385360.html
ldap 安装:
apt install slapd ldap-utils migrationtools
修改配置文件
nano /etc/ldap/ldap.conf
将URI写成自己的域名或IP
URI ldap://192.168.65.1
正确填写相关信息(域名,组织名,数据库选第一个)
dpkg-reconfigure slapd
检查是否安装成功,信息是否配置正确
slapcat