首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能在CentOS中启动slapd

未能在CentOS中启动slapd
EN

Unix & Linux用户
提问于 2013-01-30 14:01:55
回答 1查看 9.4K关注 0票数 3

我试图为我的开发设置一个LDAP服务器。为此,我选择了CentOS 6.3在Fedora 17的VirtualBox主机上安装它。我遵循本教程来指导我的设置,不管怎么说,当我使用这个命令service slapd start启动服务时,我得到了以下错误:

代码语言:javascript
复制
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,这是一个空行。

代码语言:javascript
复制
#
# 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
EN

回答 1

Unix & Linux用户

发布于 2013-04-30 16:31:46

删除slapd.conf文件中的空行;这为我修复了它。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/63092

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档