database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
ㆍLDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
LDAP Q&A 2241 게시물 읽기
No. 2241
openldap 설치 후, make test 에러 입니다...
작성자
성하니(s99king)
작성일
2006-03-13 04:40
조회수
8,283

 

안녕하세요? 5일 전부터 ldap에 빠지기 시작한 학생입니다.

설치와 사용 방법을 터득하기를 수일 째 한뒤, 오늘 드디어 openldap의 make install까지 완료 했는데요... make test에서 에러가 납니다.

답답한 마음에 이 싸이트를 검색해보니, 2004년 3월 30일에 윤성중 님께서 올린 글과 동일한 문제이더라구요(여기에 있습니다. http://database.sarang.net/?inc=read&aid=2037&criteria=ldap&subcrit=&id=&limit=20&keyword=BerkeleyDB+version+incompatible&page=1)

 

그런데 아쉽게도 그 글의 답변은 없었습니다.

즉 ,문제는 동일한데요... make test 후,

 

....

Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
./scripts/test000-rootdse: line 57: kill: (16573) - 그런 프로세스가 없음
ldap_bind: Can't contact LDAP server (81)
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
make[1]: *** [test-bdb] 오류 1
make[1]: 나감 `/root/openldap-2.1.29/tests' 디렉토리
make: *** [test] 오류 2

 

와 같은 오류가 발생하는 것입니다.

 

그 뒤, "/usr/local/ldap/libexec/slapd -f /usr/local/ldap/etc/openldap/slapd.conf" 등의 명령어를 사용하여 slapd를 활성화 시키려고 해도, "init_config_attrs: ...., slapd: overlay_init failed slapd destroy: freeing system resources ...." 등의 에러가 발생합니다.

 

BerkelyDB도 그 글과 동일한 문제가 발생하여 '/usr/lib' 등에 파일을 옮기는 작업도 그 글과 동일하게 해서 설치를 했었는데요...

 

무슨 문제인지.. 그 글의 최종 해결 답안은 무엇이었는지 궁금합니다... 벌써 리눅스만 4~5번 새로 깔면서 설치를 반복하고 있는 상황입니다... 도와주세요~

이 글에 대한 댓글이 총 3건 있습니다.

slapd.conf를 한번 보여주세요.

slapd.conf 설정 부분에서 이상이 있는거 같습니다.

여러가지 문제로 발생되는 일이라 제가 보지 않으면서 이야기 하기에는 힘이들것 같습니다.

송상준(sjsong)님이 2006-03-13 20:38에 작성한 댓글입니다.

답글 정말 감사드립니다...

근데 우선 "make test" 실행시 에러가 나는 것인데, slapd.conf와 관련이 있는건가요?

slapd.conf 는 맨 아래와 같습니다.

그냥 기본 설치되는 파일이지요...

여기서 suffix, rootdn 쪽 등을 여러 싸이트의 가이드에 나온대로 여러가지로 바꿔가며 모두 해보았습니다만, 역시나 ldap 실행은 되지 않았었습니다.

그래서 생각한게 지금 사용 버젼과 관련해서 문제가 나타난 것인지 등입니다.

지금 설치하면서 사용한 버젼은 다음과 같습니다.

- Redhat Linux 9.0

- Cyrus-sasl-2.1.21

- Berkely DB-4.4.20

- Openssl-0.9.7i

- Openldap-2.3.20    입니다.

 

우선 Openldap 설치 하던(./configure 부분) 중에 Berkely DB 관련 에러가 나서 보니, header는 Berkely DB 4.4 버젼인데, library는 4.0.14 버젼이다 라는 에러가 나서 버젼을 down 해보기도 했었습니다.

그것도 안되서, sasl 도 버젼 down해보고 openssl 도 그래봤습니다만, 모두 소용은 없었습니다.

 

그래서, 또 다시 생각한 것이 redhat 9.0 버젼에 기본으로 설치되어 있는 openldap 버젼과 충돌이 아닌가 해서 "rpm -e --nodeps openldap"등을 이용해서 기본 설치 버젼을 모두 삭제해 보았습니다만 역시나 그 이후에도 문제는 계속 발생했습니다.

 

대체 무엇이 문제인가요... 이제 알고 싶은건, 여기서 질문들이 나오는 예전 버젼 말고, 현재 사용되는 9.0에서 설치하신 분이 있으면, 어떤 버젼으로 사용했는지. 작성한 설치 가이드는 없는 것인지 입니다...

 

물론, conf 파일에 문제가 있어서라면, 알려주시구요....

 

감사합니다.... (답변주신 송상준 님께 korea,com 메일로 더 자세한 질문 드렸는데, 답변이 없으시네요...)

 

 

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include  /usr/local/ldap/etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile  /usr/local/ldap/var/run/slapd.pid
argsfile /usr/local/ldap/var/run/slapd.args

# Load dynamic backend modules:
# modulepath /usr/local/ldap/libexec/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la

# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
#  Allow self write access
#  Allow authenticated users read access
#  Allow anonymous users to authenticate
# Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
# by self write
# by users read
# by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# BDB database definitions
#######################################################################

database bdb
suffix  "dc=my-domain,dc=com"
rootdn  "cn=Manager,dc=my-domain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw  secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /usr/local/ldap/var/openldap-data
# Indices to maintain
index objectClass eq

성하니(s99king)님이 2006-03-15 23:01에 작성한 댓글입니다.

오래전에 저 문제로 끙끙거렸습니다.

근데 지금 회사라서 자료가 집에 있습니다.

오늘 저녁에 제가 다시 찾아보고 답변 드리겠습니다.

시간이 오래 지나서 답변을 찾았는지 모르겠습니다

윤성중님이 2006-05-03 17:38에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
2245LDAP 인증 [1]
김대청
2006-03-20
8399
2243sun one ldap 설치시 문제발생 [1]
왕현정
2006-03-14
7553
2242[PDF] netscape LDAP SDK for c
정재한
2006-03-14
6974
2241openldap 설치 후, make test 에러 입니다... [3]
성하니
2006-03-13
8283
2240스키마 작성요령좀 알려주셍 ㅛ [1]
정원섭
2006-03-10
7180
2239SUN one directory 5.2에대해서 궁금한점 [1]
정원섭
2006-03-10
7006
2236netscape LDAP SDK질문입니다 [4]
정재한
2006-03-09
6815
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.050초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다