大网数据广告活动
服务器运维问答

Remove all contents of an openldap server in Centos

· 52CE 我爱测

I'm facing a problem and I don't know how to solve it. In fact, I have done some ldapadd and I've realised that I need to delete all things from the server. So what I've tested is to reinstall yum but it doesn't solve my problem …

问题原文

原帖链接 · rsabir · CC BY-SA 3.0

I'm facing a problem and I don't know how to solve it. In fact, I have done some ldapadd and I've realised that I need to delete all things from the server. So what I've tested is to reinstall yum but it doesn't solve my problem because the contents remains even if openldap-servers is removed. I know that with ldapdelete I can delete entries one by one but I was hoping for something like dpkg-reconfigure. So how can I solve my problem?

已采纳解答

原帖链接 · ALex_hha · CC BY-SA 3.0

If you really need to delete the whole LDAP tree with all records - you can just delete all files in /var/lib/ldap/*. The path could be distro related.

You can check the current path with

# grep ^directory /etc/openldap/slapd.conf
/var/lib/ldap

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-03-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。