免费注册 查看新帖 |

Chinaunix

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

[ldap] 这样是不是bdb已经启动并正常了?为何我不能加person [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-06 21:13 |只看该作者 |倒序浏览
环境: win2000 +openldap+bdb4.4.20

1。。slapd.conf

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
ucdata-path        ./ucdata
include                ./schema/core.schema
include                ./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:/root.openldap.org

pidfile                ./run/slapd.pid
argsfile        ./run/slapd.args

# Load dynamic backend modules:
# modulepath        ./libexec/openldap
# moduleload        back_bdb.la
# moduleload        back_ldap.la
# moduleload        back_ldbm.la
# moduleload        back_passwd.la
# moduleload        back_shell.la

# Sample security restrictions
#        Require integrity protection (prevent hijacking)
#        Require 112-bit (3DES or better) encryption for updates
#        Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#        Root DSE: allow anyone to read it
#        Subschema (sub)entry DSE: allow anyone to read it
#        Other DSEs:
#                Allow self write access
#                Allow authenticated users read access
#                Allow anonymous users to authenticate
#        Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
#        by self write
#        by users read
#        by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read"
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# BDB database definitions
#######################################################################

database        bdb
suffix                "dc=belims,dc=com"
rootdn                "cn=Manager,dc=belims,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                secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory        ./data
# Indices to maintain
index        objectClass        eq




2...run dbvars.bat
‘REG’不是内部或外部命令,也不是可运行程序
或批处理文件
关闭‘ECHO’
NOTE:
The Berkeley DB version could not be determined.
If you are running on Windows 2000, make sure the
REG.EXE program is installed from the Tools disk"
关闭‘ECHO’



3...
C:\OpenLDAP>slapd –d 256
main: new debug level is: 256
main: new config file is: .\slapd.conf
@<#> $OpenLDAP: slapd 2.2.29 <oct 21 2005 16:01:14>$
        Mmohr@BELITIRApenldap-2.2.29/servers/slapd
Bdb_db_init:Initializing BDB database
Slapd starting


4...use ldapbrowser(see attachment)

ldapbrowser.rar

93.76 KB, 下载次数: 41

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2006-04-11 21:39 |只看该作者
这个问题可以自己probe出来的啊.
slapd -d256不就是要看错误信息的吗?
在你加person的时候出的错误都会显示出来的,要仔细看.
你没有把错误信息发出来,所以不能很肯定的说错误是什么.
不过看样子大概是你的schema文件没include全,把所有的都include进来,不要太抠门
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP