Problems encountered during OpenLDAP migration

Source: Internet
Author: User
Tags openldap

Migrate LDAP. The system is CentOS. Start openldap after copying/var/lib/ldap/data to the target machine. An error is found:

[Root @ localhost lib] #/etc/init. d/slapd start
Checking slapd configuration file: [failed]
/Etc/openldap/slapd. conf: line 110: invalid path: Permission denied
Slaptest: bad configuration file!

Permissions are configured and selinux problems are discovered. Depressing
Disable selinux without restarting: setenforce 0
Permanently close:

Vim/etc/openldap/slapd. conf
Set
SELINUX = disabled

Then, no error is reported when ldap is started.

Detours:
Yum is faulty when you delete openldap.
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
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

The reason is that it is deleted.
Rpm-ef openldap-2.4.23-34.el6_5.1.x86_64 -- nodeps
So finally find the openldap-2.4.23-34.el6_5.1.x86_64.rpm, this rpm package installation solves the yum Problem

OpenLDAP details: click here
OpenLDAP: click here

Liferay Portal configuration uses Oracle and OpenLDAP

Axigen + OpenLDAP + BerkeleyDB + ejabberd multi-domain + WeChat chat detailed configuration

Deploy OpenLDAP authentication in CentOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.