免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 6607 | 回复: 37
打印 上一主题 下一主题

[ldap] 安装openldap出现问题, 请高手帮忙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-02 12:08 |只看该作者 |倒序浏览
系统rh9
openldap-2.1.29
BerkeleyDB.4.2。52

先编译BerkeleyDB
cd build_unix
../dist/configure
make
make install
/usr/local/BerkeleyDB.4.2/lib 的库路径写到 /etc/ld.so.conf 执行ldconfig

然后编译openldap
env CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib" ./configure --prefix=/usr/local/openldap --enable-ldbm

make depend
make
都没有问题
但是在 make test 出现如下错误 :

[root@SSL openldap-2.1.29]# make test
cd tests; make test
make[1]: Entering directory `/home/st/software/openldap-2.1.29/tests'
ln: ‘./data’:无法覆盖目录
make[1]: [test-bdb] Error 1 (ignored)
ln: ‘./schema’:文件已存在
make[1]: [test-bdb] Error 1 (ignored)
ln: ‘ucdata/liblunicode’:文件已存在
make[1]: [test-bdb] Error 1 (ignored)
Initiating LDAP tests for BDB...
>;>;>;>;>; Executing all LDAP tests...
>;>;>;>;>; Test Directory: .
>;>;>;>;>; Backend: bdb
>;>;>;>;>; Starting test000-rootdse ...
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
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 57: kill: (2519) - 没有那个进程
ldap_bind: Can't contact LDAP server (81)
>;>;>;>;>; Test failed
>;>;>;>;>; ./scripts/test000-rootdse failed (exit 1)
make[1]: *** [test-bdb] Error 1
make[1]: Leaving directory `/home/st/software/openldap-2.1.29/tests'
make: *** [test] Error 2
[root@SSL openldap-2.1.29]#

请问,这是什么错呢, 在网上查了查,有人说是因为BerkeleyDB.4.2.52 需要补丁,后来我也下了,也是报同样的错误, 后来我又下载了一个BerkeleyDB.4.3.28这个不许要补丁。 但是也报同样的错误,  
后来我直接make install 到也没有报错, 但是我执行/usr/local/openldap/libexec/slapd 没有反映 ps -e  也没有看到openldap的进程。

请高手指点迷经

论坛徽章:
0
2 [报告]
发表于 2005-09-02 13:22 |只看该作者

安装openldap出现问题, 请高手帮忙

现在make test 已经通过了,make install 也没有问题,
然后我执行/usr/local/openldap/libexec/slapd   没有反映,ps -e 也看不到slapd的进程。
也是用root 执行的。

论坛徽章:
0
3 [报告]
发表于 2005-09-02 16:59 |只看该作者

安装openldap出现问题, 请高手帮忙

Run slapd with max. debug level:

/usr/local/openldap/libexec/slapd -d -1

论坛徽章:
0
4 [报告]
发表于 2005-09-02 22:10 |只看该作者

安装openldap出现问题, 请高手帮忙

ldd /usr/local/openldap/libexec/slapd

怎么讲?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2005-09-03 09:19 |只看该作者

安装openldap出现问题, 请高手帮忙

/usr/local/openldap/libexec/slapd -d 256
把错误帖出来

论坛徽章:
0
6 [报告]
发表于 2005-09-05 09:24 |只看该作者

安装openldap出现问题, 请高手帮忙

ldd 结果如下:
[root@SSL root]# ldd /usr/local/openldap/libexec/slapd
        libcrypt.so.1 =>; /lib/libcrypt.so.1 (0x40034000)
        libsasl2.so.2 =>; /usr/local/lib/libsasl2.so.2 (0x40061000)
        libresolv.so.2 =>; /lib/libresolv.so.2 (0x40073000)
        libdl.so.2 =>; /lib/libdl.so.2 (0x40085000)
        libpthread.so.0 =>; /lib/tls/libpthread.so.0 (0x40088000)
        libc.so.6 =>; /lib/tls/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 =>; /lib/ld-linux.so.2 (0x40000000)
[root@SSL root]#

报错信息如下:
[root@SSL root]# /usr/local/openldap/libexec/slapd -d 256
daemon: socket() failed errno=97 (Address family not supported by protocol)
slap_sasl_init: SASL version mismatch, got 201000a, wanted 201000c.
slapd stopped.
connections_destroy: nothing to destroy.

SASL 版本不匹配?  我下载的是这个版本 cyrus-sasl-2.1.12.tar.gz

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
7 [报告]
发表于 2005-09-05 10:23 |只看该作者

安装openldap出现问题, 请高手帮忙

SASL很容易出现这样的问题,主要原因是系统中已经有了sasl,在没有完全拆除的情况下又装了不同版本的sasl
网上有很多解决的办法,但都不是一定管用,可以先试试ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
我遇到这个问题的时候就是把所有关于sasl的东西都删掉,把系统清干净了再装新的sasl,或是不要自己编译,就用系统自带的sasl版本。如果是RH的系统建议采用后者。

论坛徽章:
0
8 [报告]
发表于 2005-09-05 14:05 |只看该作者

安装openldap出现问题, 请高手帮忙

我已经 make uninstall 了  而且查看了安装目录,确实已经删掉了, 然后我又从新把ldap 安装了一边, 运行后还是同样的错误,

另外,我在做make test 的时候,出现如下不太正常的信息, 没有卸载sasl的时候也是有同样的信息:


cd tests; make test
make[1]: Entering directory `/home/st/software/openldap-2.1.29/tests'
ln: ‘./data’:无法覆盖目录
make[1]: [test-bdb] Error 1 (ignored)
ln: ‘./schema’:文件已存在
make[1]: [test-bdb] Error 1 (ignored)
ln: ‘ucdata/liblunicode’:文件已存在
make[1]: [test-bdb] Error 1 (ignored)
Initiating LDAP tests for BDB...
>;>;>;>;>; Executing all LDAP tests...
>;>;>;>;>; Test Directory: .
>;>;>;>;>; Backend: bdb
>;>;>;>;>; Starting test000-rootdse ...
running defines.sh
Datadir is ./data
Cleaning up in ./test-db...
Starting slapd on TCP/IP port 9009...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
dn:
objectClass: top
structuralObjectClass: OpenLDAProotDSE
objectClass: OpenLDAProotDSEnamingContexts: o=OpenLDAP Project,l=Internet
supportedControl: 1.2.826.0.1.334810.2.3
supportedControl: 1.3.6.1.4.1.4203.1.10.1
supportedControl: 1.3.6.1.4.1.4203.1.10.2
supportedControl: 2.16.840.1.113730.3.4.2
supportedControl: 2.16.840.1.113730.3.4.18
supportedExtension: 1.3.6.1.4.1.1466.20037
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.4203.1.11.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.1
supportedFeatures: 1.3.6.1.4.1.4203.1.5.2
supportedFeatures: 1.3.6.1.4.1.4203.1.5.3
supportedFeatures: 1.3.6.1.4.1.4203.1.5.4
supportedFeatures: 1.3.6.1.4.1.4203.1.5.5
supportedLDAPVersion: 3
vendorName: The OpenLDAP Project <http://www.openldap.org/>;
subschemaSubentry: cn=Subschema
                                                                                
>;>;>;>;>; Test succeeded
>;>;>;>;>; ./scripts/test000-rootdse completed OK.
>;>;>;>;>; waiting 10 seconds for things to exit
                                                                                
  >;>;>;>;>; Starting test001-slapadd ...
.....  后面一切正常

为什么会出现 "文件已存在, 无法覆盖目录"  之类的信息呢

论坛徽章:
0
9 [报告]
发表于 2005-09-06 09:00 |只看该作者

安装openldap出现问题, 请高手帮忙

急呀, 我顶

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2005-09-06 10:39 |只看该作者

安装openldap出现问题, 请高手帮忙

这个问题我真没遇到过
帮你顶吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP