- 论坛徽章:
- 0
|
我是一个linux的新手,最近需要装一个LDAP目录服务器,我选择了RH9.0+OpenLDAP,但是我弄了很长时间了,一直没有安装成功,真是急死人了。有谁能帮帮我呀,我这里先谢谢了!
我先装了BerkeleyDB4.3,Cyrus SASL2.1.21,一切都正常,但是安装OpenLDAP2.3.7的时候,就不行了,我的安装过程是:
env CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/lib/sasl2" LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib/sasl2" ./configure --prefix=/usr/local/openldap --enable-ldbm --with-cyrus-sasl
make depend
make
make test
当make test时,就过不去了,报错如下:
[root@localhost openldap-2.3.7]# make test
cd tests; make test
make[1]: Entering directory `/home/steven/ldap/openldap-2.3.7/tests'
make[2]: Entering directory `/home/steven/ldap/openldap-2.3.7/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 63: kill: (16619) -
ldap_bind: Can't contact LDAP server (-1)
>;>;>;>;>; Test failed
>;>;>;>;>; ./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/home/steven/ldap/openldap-2.3.7/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/steven/ldap/openldap-2.3.7/tests'
make: *** [test] Error 2
make install时也不报错,但是/usr/local/openldap/libexec/slapd -d 256的报错如下:
[root@localhost openldap-2.3.7]# /usr/local/openldap/libexec/slapd -d 256
@(#) $OpenLDAP: slapd 2.3.7 (Sep 22 2005 14:38:39) $
steven@localhost.localdomain:/home/steven/ldap/openldap-2.3.7/servers/sl
apd
daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
daemon: bind(6) failed errno=98 (Address already in use)
slapd stopped.
connections_destroy: nothing to destroy.
哪位朋友知道问题出在哪里了,帮帮我吧,谢谢了! |
|