迁移LDAP,系统是CentOS,拷贝/var/lib/ldap/的数据到目标机器之后启动openldap,发现错误:
[root@localhost lib]# /etc/init.d/slapd start
正在检查 slapd 的配置文件: [失败]
/etc/openldap/slapd.conf: line 110: invalid path: Permission denied
slaptest: bad configuration file!
权限设置各种设置,最后发现是selinux的问题。郁闷
不重启关闭selinux:setenforce 0
永久关闭:
vim /etc/openldap/slapd.conf
设置
SELINUX=disabled
然后启动ldap就没有报错了。
走的弯路:
删除openldap导致yum出现问题
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libldap-2.4.so.2: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
关注公众号,解锁完整文章
微信扫码关注 星哥玩云,
在公众号对话框回复关键词 星哥玩云博客 获取验证码。输入后即可阅读全文,
一次解锁全站文章通用。