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