我试图为我的开发设置一个LDAP服务器。为此,我选择了CentOS 6.3在Fedora 17的VirtualBox主机上安装它。我遵循本教程来指导我的设置,不管怎么说,当我使用这个命令service slapd start启动服务时,我得到了以下错误:
Checking configuration files for slapd: [FAILED]
/etc/openldap/slapd.conf: line 9: bad config line.
slaptest: bad configuration file!我确信我已经把这个文件/etc/openldap/slapd.conf交给ldap的所有者了。我能知道如何纠正这个问题吗?
我从slapd.conf中提取了前几行文本,查看line 9,这是一个空行。
#
# 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发布于 2013-04-30 16:31:46
删除slapd.conf文件中的空行;这为我修复了它。
https://unix.stackexchange.com/questions/63092
复制相似问题