免费注册 查看新帖 |

Chinaunix

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

CentOS 5.0 ldap 配置不成功 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-17 20:37 |只看该作者 |倒序浏览
Stopping slapd:                                            [  OK  ]
Checking configuration files for slapd:  bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)
Expect poor performance for suffix dc=akatsa,dc=cn.
config file testing succeeded
                                                           [  OK  ]
Starting slapd:                                            [  OK  ]

我用 ldapsearch 測試的時候確出現   ldap_bind: Can't contact LDAP server (-1)

我有這兩各包沒有安裝上去,是不是這兩個包的問題:
1. yum install perl-ldap-0.33-1.el5.rf.noarch.rpm
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Examining perl-ldap-0.33-1.el5.rf.noarch.rpm: perl-ldap - 0.33-1.el5.rf.noarch
Marking perl-ldap-0.33-1.el5.rf.noarch.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package perl-ldap.noarch 0:0.33-1.el5.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
perl-ldap               noarch     0.33-1.el5.rf    perl-ldap-0.33-1.el5.rf.noarch.rpm  514 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 514 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6


Public key for perl-ldap-0.33-1.el5.rf.noarch.rpm is not installed

2. rpm -ivh smbldap-tools-0.9.1-1.2.el5.rf.noarch.rpm
warning: smbldap-tools-0.9.1-1.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
        perl-ldap is needed by smbldap-tools-0.9.1-1.2.el5.rf.noarch

论坛徽章:
0
2 [报告]
发表于 2007-04-18 09:12 |只看该作者
应该是没装数据库吧?

论坛徽章:
0
3 [报告]
发表于 2007-04-18 10:22 |只看该作者
谢谢提醒,以前这样好像能成功,再试试看!

论坛徽章:
0
4 [报告]
发表于 2007-04-18 20:42 |只看该作者
好像是沒有裝數據庫。

現在又遇到一個問題了:運行  ./smbldap-populate 出現一下提示:
./smbldap-populate
Can't locate Unicode/MapUTF8.pm in @INC (@INC contains: /usr/share/doc/samba-3.0.23c/LDAP/smbldap-tools-0.9.2/ /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/share/doc/samba-3.0.23c/LDAP/smbldap-tools-0.9.2//smbldap_tools.pm line 6, <DATA> line 225.
BEGIN failed--compilation aborted at /usr/share/doc/samba-3.0.23c/LDAP/smbldap-tools-0.9.2//smbldap_tools.pm line 6, <DATA> line 225.
Compilation failed in require at ./smbldap-populate line 35, <DATA> line 225.
BEGIN failed--compilation aborted at ./smbldap-populate line 35, <DATA> line 225.
望高手幫忙。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP