免费注册 查看新帖 |

Chinaunix

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

[ldap] openldap 安装时 执行 make test 出错! 高手请进. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-29 14:49 |只看该作者 |倒序浏览
提示错误:
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: kill: (14117) - No such pid
ldap_bind: Can't contact LDAP server (-1)
>;>;>;>;>; Test failed
>;>;>;>;>; ./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes] Error 1

在次网站:http://makefile.blogchina.com/   看到的安装步骤   说什么               "则是lib和include文件不匹配,将SASL和Berkeley 的头文件

和库拷贝到/usr/include和/usr/lib下

在执行就可以了。"
这句话 是什么意思?  怎么处理???

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

openldap 安装时 执行 make test 出错! 高手请进.

等待高手的指点!

论坛徽章:
0
3 [报告]
发表于 2005-07-18 20:49 |只看该作者

openldap 安装时 执行 make test 出错! 高手请进.

在 FreeBSD5.4 上安装Openldap完成后,无法启动,出现错误。
执行 Make test 也出错,停下来了
说是: master and P2 slave databases differ

不知道为什么?

论坛徽章:
0
4 [报告]
发表于 2005-07-20 17:13 |只看该作者

openldap 安装时 执行 make test 出错! 高手请进.

You must install OpenLDAP depending components first, i.e. OpenSSL 0.9.7X, Berkeley DB 4.2.52 + 2 patches and Cyrus-SASL 2.1.2X.

# cat tests/testrun/slapd.1.log

Most likely "make test" failed due to mismatch Cyrus-SASL.

If so, reconfigure using something like the following (one line):

#env LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib/sasl2:/usr/local/BerkeleyDB.4.2/lib:/usr/local/ssl/lib" LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib -R/usr/local/lib -R/usr/local/lib/sasl2 -R/usr/local/BerkeleyDB.4.2/lib -R/usr/local/ssl/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include" ./configure --enable-bdb --enable-ldbm --enable-ldap --enable-meta --enable-crypt --with-tls --with-cyrus-sasl

And then re-do "make" and "make test" again

Gary

论坛徽章:
0
5 [报告]
发表于 2005-07-20 21:07 |只看该作者

openldap 安装时 执行 make test 出错! 高手请进.

The openldap installed  successfully, but I got next trouble.
When I implement command : ldapadd, It indicated an error "
Ldap_bind: can't connect the ldap server (1).  I don't know why ?

I ensure the Ldap server is running .

Any professional can told me Why ? how to resolve ?

论坛徽章:
0
6 [报告]
发表于 2005-07-21 12:16 |只看该作者

openldap 安装时 执行 make test 出错! 高手请进.

Run slapd in debug mode:

# /path/to/slapd -d -1 -u ldap

And run your "ldapadd -x ..." command.

And observer the error in debugging log

Note that you need to use "-x" option for simple bind operation for all ldapxxx commands.

Gary

论坛徽章:
0
7 [报告]
发表于 2005-07-21 20:08 |只看该作者

openldap 安装时 执行 make test 出错! 高手请进.

I'm sorry, I don't understand you said.
How to change it run in debug mode ?
Could you please to explain it for more info ? thanks very much

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

openldap 安装时 执行 make test 出错! 高手请进.

Assuming your OpenLDAP Server Daemon "slapd" is installed on /usr/local/libexec, assuming your LDAP data directory /var/lib/ldap is owned by "ldap" user.

Login as "root", at the # command prompt, type the following:

/usr/local/libexec/slapd -d -1 -u ldap

Gary
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP