前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >OpenLDAP迁移遇到的问题

OpenLDAP迁移遇到的问题

作者头像
星哥玩云
发布2022-06-29 21:00:26
5510
发布2022-06-29 21:00:26
举报
文章被收录于专栏:开源部署

迁移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. It's possible that the above module doesn't match the current version of Python, which is: 2.6.5 (r265:79063, Jun 25 2011, 08:36:25) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] If you cannot solve this problem yourself, please go to

原因是删除了 rpm -ef openldap-2.4.23-34.el6_5.1.x86_64 --nodeps 所以最后找到openldap-2.4.23-34.el6_5.1.x86_64.rpm    这个rpm包安装解决yum出现的问题

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档