阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

OpenLDAP迁移遇到的问题

141次阅读
没有评论

共计 1203 个字符,预计需要花费 4 分钟才能阅读完成。

迁移 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 出现的问题

OpenLDAP 的详细介绍:请点这里
OpenLDAP 的下载地址:请点这里

相关阅读:

Liferay Portal 配置使用 Oracle 和 OpenLDAP http://www.linuxidc.com/Linux/2012-07/66928.htm

Axigen+OpenLDAP+BerkeleyDB+ejabberd 多域 +JWchat 详细配置 http://www.linuxidc.com/Linux/2012-06/61598.htm

CentOS 部署 OpenLDAP 认证 http://www.linuxidc.com/Linux/2012-04/57932.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计1203字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中