I was trying to setup an LDAP server for my development. For this purpose, I have chose CentOS 6.3 install it in VirtualBox host in Fedora 17. I'm following this tutorial to guide me on this setup, anyhow when I start the service using this command
service slapd start, I got this error:
Checking configuration files for slapd: [FAILED] /etc/openldap/slapd.conf: line 9: bad config line. slaptest: bad configuration file!
I'm sure I have this file
/etc/openldap/slapd.conf to the owner of ldap. May I know any idea to rectified this problem?
I have extract the first few lines of text from
slapd.conf, looking at
line 9, that is an empty line.
# # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema # Added for policy include /etc/openldap/schema/ppolicy.schema # Allow LDAPv2 client connections. This is NOT the default. allow bind_v2 # Do not enable referrals until AFTER you have a working directory # service AND an understanding of referrals. #referral ldap://root.openldap.org pidfile /var/run/openldap/slapd.pid argsfile /var/run/openldap/slapd.args