免费注册 查看新帖 |

Chinaunix

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

[ldap] 请教LDAP如何支持多 suffix 设置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-17 16:58 |只看该作者 |倒序浏览
这是我的slapd.conf的截取部分

# rootdn can always read and write EVERYTHING!
allow bind_v2

#######################################################################
# BDB database definitions
######################################################################
database        hdb
directory       /ldapdata
index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname                       eq,subinitial
suffix  o=beijing,c=cn
suffix  o=olympic

rootdn  cn=root,o=beijing,c=cn
rootpw  root


但启动slapd -d 1 报错 :
backend_startup_one: starting "o=beijing,c=cn"
bdb_db_open: only one suffix allowed
backend_startup_one: bi_db_open failed! (-1)
slapd shutdown: initiated
====> bdb_cache_release_all
slapd destroy: freeing system resources.
slapd stopped.


这是为什么,我的设置是否存在问题,谢谢指教

论坛徽章:
0
2 [报告]
发表于 2008-09-17 21:50 |只看该作者
database        hdb

这是啥参数~~

database        bdb
是不是这个~?

论坛徽章:
0
3 [报告]
发表于 2008-09-19 23:25 |只看该作者
database        hdb
directory       /ldapdata1
index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname                       eq,subinitial
suffix  o=olympic
rootdn  cn=root,o=beijing,c=cn
rootpw  root

database        hdb
directory       /ldapdata2
index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname                       eq,subinitial
suffix  o=beijing,c=cn
rootdn  cn=root,o=beijing,c=cn
rootpw  root

论坛徽章:
0
4 [报告]
发表于 2008-10-06 15:55 |只看该作者

回复 #3 forxy 的帖子

好像不可以,报错:
bdb(o=olympic): unable to join the environment
bdb_db_open: Database cannot be opened, err -30974. Restore from backup!
====> bdb_cache_release_all
bdb(o=olympic): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
bdb(o=olympic): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_close: txn_checkpoint failed: Invalid argument (22)
backend_startup_one: bi_db_open failed! (-30974)
slapd shutdown: initiated
====> bdb_cache_release_all
====> bdb_cache_release_all
bdb_db_close: alock_close failed
slapd destroy: freeing system resources.
slapd stopped.

论坛徽章:
0
5 [报告]
发表于 2008-10-06 18:25 |只看该作者
把数据清空了吗?

论坛徽章:
0
6 [报告]
发表于 2008-10-08 09:18 |只看该作者
楼主提的问题解决了吗????麻烦分享下!!!!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP