먼저 openldap를 설치하기 전에 openssl-0.9.7g 과 Berkerly DB-4.2
를 설치했습니다.
openldap-2.3.4 설정옵션은 다음과 같습니다.
make test까지 일반계정으로 설치를 하였습니다.
CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include \
-I/usr/local/ssl/include/openssl \
-I/usr/local/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib
\
-L/usr/local/lib" \
./configure --prefix=/usr/local/openldap --with-tls --enable-slurpd
\
--enable-crypt \
--enable-syslog \
--sysconfdir=/etc
make depend
make
make test
make test시에 나타나는 오류는 다음과 같습니다.
[ hoopy@ns openldap-2.3.4]$
make test
cd tests; make
test
make[1]: Entering
directory `/home/hoopy/openldap-2.3.4/tests'
make[2]: Entering
directory `/home/hoopy/openldap-2.3.4/tests'
Initiating LDAP tests
for BDB...
Cleaning up test run
directory leftover from previous run.
Running
./scripts/all...
>>>>>
Executing all LDAP tests for bdb
>>>>>
Starting test000-rootdse ...
running
defines.sh
Starting slapd on
TCP/IP port 9011...
Using ldapsearch to
retrieve the root DSE...
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...
Waiting 5 seconds for
slapd to start...
./scripts/test000-rootdse: line 61: kill: (31370) - 그런
프로세스가 없음
ldap_bind: Can't
contact LDAP server (-1)
>>>>>
Test failed
>>>>>
./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes]
오류 1
make[2]: Leaving
directory `/home/hoopy/openldap-2.3.4/tests'
make[1]: *** [test]
오류 2
make[1]: Leaving
directory `/home/hoopy/openldap-2.3.4/tests'
make: *** [test] 오류
오류가 난 파일의 로그를 다음과 같이
확인하였습니다.
@(#) $OpenLDAP: slapd 2.3.4 (Jun 27 2005 13:17:55)
$
root@ns:/home/hoopy/openldap-2.3.4/servers/slapd
daemon_init: ldap://localhost:9011/
daemon_init: listen on ldap://localhost:9011/
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap://localhost:9011/)
daemon: initialized ldap://localhost:9011/
daemon_init: 1 listeners opened
slapd init: initiated server.
slap_sasl_init: SASL library version mismatch: expected 2.1.21, got
2.1.19
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
아직 ldap에 대해서 개념이 잘 안잡히는지라..위의
오류점 해석점 부탁드리겠습니다.
감사합니다.
|