免费注册 查看新帖 |

Chinaunix

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

[ldap] openldap编译kbind.o的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-18 12:53 |只看该作者 |倒序浏览
hello,
I am developing a ldap client program with kerberos V5 authentication under CentOS 4.3. Heimdal 0.7.2 is used for KDC, and OpenLDAP 2.3.24 for heimdal's backend. Cyrus SASL 2.1.22, OpenSSL 0.9.8b and BerkeleyDB 4.4.20 are also used. I compile OpenLDAP as follow,

$env ol_enable_kbind=yes ./configure --prefix=/usr --localstatedir=/var/openldap --enable-syslog --enable-local --with-cyrus-sasl --with-threads --with-tls --with-kerberos --enable-crypt --enable-lmpasswd --enable-spasswd --enable-modules
--enable-hdb --enable-ldap --enable-monitor --enable-dyngroup --enable-proxycache
$make depend
$make

then error occurs,

...

make[3]: Entering directory `/home/xk/download/openldap-2.3.24/servers/slapd/back-bdb'
/bin/sh ../../..//libtool --tag=disable-shared --mode=compile cc -g -O2 -I../../../include        -I../../../include -I.. -I./..     -c bind.c
cc -g -O2 -I../../../include -I../../../include -I.. -I./.. -c bind.c -o bind.o
bind.c: In function `bdb_bind':
bind.c:154: error: syntax error before "goto"
bind.c:161: error: syntax error before "goto"
bind.c:176: error: syntax error before "goto"
make[3]: *** [bind.lo] Error 1
make[3]: Leaving directory `/home/xk/download/openldap-2.3.24/servers/slapd/back-bdb'
make[2]: *** [.backend] Error 1
make[2]: Leaving directory `/home/xk/download/openldap-2.3.24/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/home/xk/download/openldap-2.3.24/servers'
make: *** [all-common] Error 1

Why?

If I don't want OpenLDAP compiled with kbind.o which includes symbol of ldap_kerberos_bind_s,

$./configure --prefix=/usr --localstatedir=/var/openldap --enable-syslog --enable-local --with-cyrus-sasl --with-threads --with-tls --with-kerberos --enable-crypt --enable-lmpasswd --enable-spasswd --enable-modules
--enable-hdb --enable-ldap --enable-monitor --enable-dyngroup --enable-proxycache
$make depend
$make
$make test
$make install

there will be no errors.

Some one else told me that compiled with kbind, OpenLDAP should be patched and autoconf redone. Is that true? How to do in detail?

Thanks.

论坛徽章:
0
2 [报告]
发表于 2006-08-18 12:54 |只看该作者
该问题我也在openldap maillist里提交了一份,thanks。

论坛徽章:
0
3 [报告]
发表于 2006-08-18 13:00 |只看该作者
If no kbind.o support, I have established the whole enviroment successfully. And the system works well. But I have to develop client program myself, so I need function ldap_kerberos_bind_s whose symbol included in kbind.o, then error occurs.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP