CentOS가 slapd를 시작하지 못함

CentOS가 slapd를 시작하지 못함

개발을 위해 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!

나는 이 파일을 LDAP 소유자에게 /etc/openldap/slapd.conf전달했다고 확신합니다. 이 문제를 해결하기 위한 아이디어를 알 수 있나요?

고쳐 쓰다

텍스트의 처음 몇 줄을 추출했는데 , 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

답변1

파일에서 빈 줄을 제거하면 slapd.conf문제가 해결됩니다.

관련 정보