OpenLDAP: 알 수 없는 명령백엔드 데이터베이스 내부 정의

OpenLDAP: 알 수 없는 명령백엔드 데이터베이스 내부 정의

2개의 별도 서버에 2개의 OpenLDAP 인스턴스의 "미러 모드"를 설정해 보세요. 그런데 새로 추가된 명령어로 인해 slapd가 시작되지 않습니다. 다음은 /var/log/ldap.log의 오류 메시지입니다.

  /etc/openldap/slapd.conf: line 127: unknown directive <syncprov-checkpoint> inside backend database definition.

환경은 다음과 같습니다.

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
# rpm -qa | grep openldap
openldap-devel-2.4.40-13.el7.x86_64
openldap-2.4.40-13.el7.x86_64
openldap-servers-2.4.40-13.el7.x86_64
openldap-clients-2.4.40-13.el7.x86_64
# ps -ef | grep slapd
root       2224      1  0 Feb17 ?        00:00:10 slapd

다음은 서버에 있는 /etc/openldap/slapd.conf 파일의 동기화 섹션입니다.

# Load dynamic backend modules:
# Module syncprov.la is now statically linked with slapd and there
# is no need to load it here
modulepath /usr/lib64/openldap

...

# enable monitoring
#database monitor

# allow onlu rootdn to read the monitor
#access to *
#        by dn.exact="cn=Administrator,dc=example,dc=com" read
#        by * none
syncprov-checkpoint 100 10
syncprov-sessionlog 100

serverID    1

syncrepl      rid=001
              provider=ldap://10.1.10.19
              bindmethod=simple
              binddn="cn=Administrator,dc=example,dc=com"
              credentials=ldap
              searchbase="dc=example,dc=com"
              schemachecking=on
              type=refreshAndPersist
              retry="60 +"

mirrormode on

loglevel -1

답변1

오늘 이 문제를 제가 직접 해결했습니다. "syncprov.la"에 대한 설명이 실수로 "우연히" 추가된 것으로 밝혀졌습니다. 누가, 왜 그런지 전혀 모릅니다.

매뉴얼을 다시 읽고 두 서버 모두에 "moduleloadsyncprov.la"를 추가한 후 문제가 해결되었습니다.

아무도 같은 질문을 하지 않은 것도 당연합니다.

관련 정보