Hi,
I am trying to migrate from CentOS 5.5 Openldap 2.3.43-12.el5_5.3 to 2.4.22-1.el5.x86_64 using Buckan RPMs (available at http://staff.telkomsa.net/packages/rhel5/openldap/x86_64/).
I think I have done all necessary configuration, but when I try to start, I get a strange error:
# service ldap2.4 start ' for reading (No such file or directory)f FNR=196) fatal: cannot open file `/etc/openldap2.4/schema/core.schema chown: cannot access `/var/lib/ldap2.4\r': No such file or directory Starting slapd (ldap + ldaps): [FAILED]
Note, however that /etc/openldap2.4/schema/core.schema exists:
# ls -la /etc/openldap2.4/schema/core.schema -rw-r--r-- 1 ldap ldap 19762 Nov 29 10:49 /etc/openldap2.4/schema/core.schema
The core.schema is the first one included in slapd.conf, so there is probably a problem with all included schema files.
The config file is supposed to be OK:
# slaptest2.4 -f /etc/openldap2.4/slapd.conf config file testing succeeded
The db data has been successfully input using slapadd, from an ldif backp. The db is in /var/lib/ldap2.4:
# slapadd2.4 -l /root/ldapbk/ldif.ldap.bk -#################### 100.00% eta none elapsed 45s spd 23.7 k/s Closing DB... [root@vweb ldap2.4]# [root@vweb ldap2.4]# [root@vweb ldap2.4]# nano slapd.conf # # pwd /var/lib/ldap2.4 # slapindex2.4 # # # chown ldap:ldap * #
# cd /var/lib # ls -la total 184 ... drwx------ 2 ldap ldap 4096 Dec 26 17:34 ldap drwxr-x--- 3 ldap ldap 4096 Dec 27 13:03 ldap2.4 ...
I have googled around but can't find something about this error.
Can someone please help?
Thanks in advance, Nick Milas