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
I found it was a permissions problem. I changed ownership of /etc/openldap2.4 directory (and contents) to ldap:ldap and it now the service starts and works fine.
However, I still get this message:
# 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): [ OK ]
Nothing is recorded in the logs and things are working fine, but why does this error occur?
Thanks, Nick
On 27/12/2010 1:31 μμ, Nick Milas wrote:
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]
Hmm,
Obviously there is some kind of dysfunction in the startup script. Would anyone recommend some alternative/rectified version of a startup script for openldap 2.4 on Centos 5 ?
Or, could someone suggest some correction(s) on this startup script? I have put it here: https://vmail.noa.gr/files/ldap2.4 hoping someone might be able to help.
Thanks in advance, Nick
On 27/12/2010 2:21 μμ, Nick Milas wrote:
I found it was a permissions problem. I changed ownership of /etc/openldap2.4 directory (and contents) to ldap:ldap and now the service starts and works fine.
However, I still get this message:
# 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): [ OK ]
Nothing is recorded in the logs and things are working fine, but why does this error occur?
Thanks, Nick
openldap-technical@openldap.org