免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: py
打印 上一主题 下一主题

[ldap] 写给所有OpenLDAP不能正常启动的人 [复制链接]

heavenwalk 该用户已被删除
91 [报告]
发表于 2006-09-28 15:06 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
92 [报告]
发表于 2006-09-28 16:03 |只看该作者
我的启动也正常
ldapadd  -D 'cn=root,dc=it,dc=com' -W
Enter LDAP Password:
SASL/GSSAPI authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
        additional info: SASL(-1): generic failure: GSSAPI Error: Miscellaneous failure (No credentials cache found)

出现这个错误
slap.conf

include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/corba.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/dyngroup.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/java.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://reoot.openldap.org

pidfile         /usr/local/var/run/slapd.pid
argsfile        /usr/local/var/run/slapd.args

database        bdb
suffix          "dc=it,dc=com"
rootdn          "cn=root,dc=it,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd( and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw  {SSHA}3MaXwW6l7fcmTCWbji3/YdlrtW7vNTav
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory       /usr/local/var/openldap-data
# Indices to maintain
index   objectClass     eq

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
93 [报告]
发表于 2006-09-30 20:41 |只看该作者
原帖由 heavenwalk 于 2006-9-28 15:06 发表
OpenLDAP调用ldapadd和ldapsearch都没有问题,使用ldap的客户端工具ldapbrowser也可以进行
浏览和增加等操作,但是使用freeradius就总是提示失败,下面是openldap的提示信息,请帮忙看一下,
十分感谢:)


...

用ldapsearch 以下uid=test,看看有结果吗?
error code32 表示没有查找到结果

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
94 [报告]
发表于 2006-09-30 20:42 |只看该作者
原帖由 大酷牛佳佳 于 2006-9-28 16:03 发表
我的启动也正常
ldapadd  -D 'cn=root,dc=it,dc=com' -W
Enter LDAP Password:
SASL/GSSAPI authentication started
ldap_sasl_interactive_bind_s: Local error (-2)
        additional info: SASL(-1): g ...

ldapadd  -x -D 'cn=root,dc=it,dc=com' -W

论坛徽章:
0
95 [报告]
发表于 2006-10-03 12:56 |只看该作者

安装运行问题

openldap-2.2.26>make test
cd tests; make test
Initiating LDAP tests for BDB...
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...
19062 Killed
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: no such process
ldap_bind: Can't contact LDAP server (-1)
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
*** Error code 1
make: Fatal error: Command failed for target `bdb-yes'
Current working directory /packages/g/openldap-2.2.26/tests
*** Error code 1
make: Fatal error: Command failed for target `test'
Current working directory /packages/g/openldap-2.2.26/tests
*** Error code 1
make: Fatal error: Command failed for target `test'

g>libexec/slapd -d 256                    
ld.so.1: slapd: fatal: libdb-4.3.so: open failed: No such file or directory
Killed

我用的是solaris9
我用/usr/ccs/bin/ld 生成了可执行文件a.out
ld -L/4.3.28/lib /usr/lib/ld.so.1
不知道对不对也不知道怎么用这个。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
96 [报告]
发表于 2006-10-04 22:05 |只看该作者
solaris环境要设置环境变量export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.*/lib,再执行make test,如果仍然有问题,就要加上环境变量重新./configure了

论坛徽章:
0
97 [报告]
发表于 2006-10-14 00:10 |只看该作者

LDAP下的操作问题?急问!

输入如下命令:
[root@localhost root]# ldapsearch -s sub "(objectclass=*)"
SASL/DIGEST-MD5 suthentication started
Please ente your password:
(输入默认密码secret后提示:)
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
为什么?
这个要求输入的到底是什么密码?
用slapd命令能成功启动LDAP服务,这里是不是因为密码错误而断开连接的?
如果在调试状态下能显示更详细的内容:
........
ldap_chkResponseList for msgid=3, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg:msgid 3, all 1
ber_get_next
ber_get_nex failed.
ldap_perror
ldap_sasl_interactive_bind_s:Cant't contact LDAP server()-1

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
98 [报告]
发表于 2006-10-14 23:32 |只看该作者
在google里搜一下,看看ldapsearch的正确用法

论坛徽章:
0
99 [报告]
发表于 2006-11-17 15:54 |只看该作者

Warning - No DB_CONFIG file found in directory ?

用: /usr/local/libexec/slapd -u ldap -d -1 看到.如下

..............
backend_startup_one: starting "dc=beltontech,dc=com"
bdb_db_open: dc=beltontech,dc=com
bdb_db_open: Warning - No DB_CONFIG file found in directory /usr/local/var/openldap-data: (2)
Expect poor performance for suffix dc=tech,dc=com.
bdb_db_open: dbenv_open(/usr/local/var/openldap-data)
........................

为什么会有:No DB_CONFIG file found in directory /usr/local/var/openldap-data: (2)
可查看端口: 389/tcp open  ldap又正确.

用命令:  ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts

#
dn:
namingContexts: dc=tech,dc=com

# search result
search: 2
result: 0 Success


这是为什么啊,影响使用吗?

[ 本帖最后由 windychan 于 2006-11-17 15:58 编辑 ]

论坛徽章:
0
100 [报告]
发表于 2006-11-17 16:09 |只看该作者
我安装好openldap后,不能对person添加email属性,在schema中把email属性添加进去后,openldap就不能启动了,请问是什么回事,非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP