标签:har rm -rf user arch config top 迁移 share serve
cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
/etc/init.d/slapd stop
rm -rf /var/lib/ldap/*
rm -rf /etc/openldap/slapd.d/*
slapadd -l 2020-03-07_ldapdbak.ldif
chown -R ldap:ldap /var/lib/ldap/
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
chown -R ldap:ldap /etc/openldap/
/etc/init.d/slapd start
ldapsearch -D "cn=admin,dc=test,dc=com" -w test -b "dc=test,dc=com" -h 127.0.0.1|grep user
标签:har rm -rf user arch config top 迁移 share serve
原文地址:https://www.cnblogs.com/peitianwang/p/13172356.html