免费注册 查看新帖 |

Chinaunix

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

OpenLDAP调试 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-12 13:18 |只看该作者 |倒序浏览

                                                                                # ps -aux | grep 'openldap'
_openldap  5909  0.0  1.9 12032  3096 ??  Ss     9:04PM    0:00.06 /usr/local/libexec/slapd -u _openldap -g _openldap#
配置文件
# cat  /etc/openldap/slapd.conf | grep -v ^#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/corba.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/courier.schema
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args
loglevel        256
database        ldbm
suffix          "dc=atyu30,dc=com"
rootdn          "cn=Manager,dc=atyu30,dc=com"
rootpw          {SSHA}sWHklilhI+N0NJMzNJBXuhIwQPmCWP6N
directory       /var/openldap-data
index   objectClass     eq
添加区域
# ldapadd -x -D "cn=Manager,dc=atyu30,dc=com" -W -f root.ldif  
Enter LDAP Password:
adding new entry "dc=atyu30,dc=com"
ldap_add: Constraint violation (19)
        additional info: dc: multiple values provided
root.ldif                                                                                                                              
dn: dc=atyu30,dc=com
objectclass: dcObject
objectclass: organization
dc: atyu30
dc: atyu30
查看结果
# ldapsearch -x -D 'cn=Manager,dc=atyu30,dc=com' -b 'dc=atyu30,dc=com' -W
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
#
日志
# tail /var/log/openldap                                                      
Oct 12 21:09:47 mail slapd[5909]: conn=1 op=0 RESULT tag=97 err=49 text=
Oct 12 21:09:47 mail slapd[5909]: conn=1 fd=11 closed (connection lost)
Oct 12 21:10:08 mail slapd[5909]: conn=2 fd=11 ACCEPT from IP=::1 35896 (IP=:: 389)
Oct 12 21:10:08 mail slapd[5909]: conn=2 op=0 BIND dn="cn=Manager,dc=atyu30,dc=com" method=128
Oct 12 21:10:08 mail slapd[5909]: conn=2 op=0 BIND dn="cn=Manager,dc=atyu30,dc=com" mech=SIMPLE ssf=0
Oct 12 21:10:08 mail slapd[5909]: conn=2 op=0 RESULT tag=97 err=0 text=
Oct 12 21:10:08 mail slapd[5909]: conn=2 op=1 SRCH base="dc=atyu30,dc=com" scope=2 deref=0 filter="(objectClass=*)"
Oct 12 21:10:08 mail slapd[5909]: conn=2 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
Oct 12 21:10:08 mail slapd[5909]: conn=2 op=2 UNBIND
Oct 12 21:10:08 mail slapd[5909]: conn=2 fd=11 closed
#
               
               
               
               
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_399278.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP