免费注册 查看新帖 |

Chinaunix

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

[ldap] 询问一个LDAP启动不了的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-28 16:10 |只看该作者 |倒序浏览
make test一切正常,[root@dkhmain openldap]# /usr/local/libexec/slapd -d 256 输入的时候出现如下信息
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
/usr/local/etc/openldap/schema/aquarius.schema: line 12: unknown directive "Attributes" outside backend info and database definitions (ignored)
bdb_db_init: Initializing BDB database
bdb(dc=eastcom-ca,dc=com): Program version 4.2 doesn't match environment version
bdb_db_open: dbenv_open failed: Invalid argument (22)
backend_startup: bi_db_open(0) failed! (22)
bdb(dc=eastcom-ca,dc=com): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.

我的配置信息如下:[root@dkhmain openldap]# more slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.7 2003/03/24 03:54:12 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/aquarius.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.

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

# Load dynamic backend modules:
# modulepath    /usr/local/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
#
#   Disallow clear text exchange of passwords
# disallow bind_simple_unprotected
#
#       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 is:
#       Allow read by all
#
# rootdn can always write!

access to attr=userpassword
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by self write
        by anonymous auth


access to filter="(OpenLDAPaci=*EVERYONE*)"
        by users write

access to dn.base="dc=eastcom-ca,dc=com"
        by users read

access to dn.base="ou=handler,dc=eastscom-ca, dc=com"
        by users read

access to dn.base="ou=users,ou=handler,dc=eastcom-ca,dc=com"
        by self write
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to dn.base="ou=groups,ou=handler,dc=eastcom-ca,dc=com"
        by self write
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to dn.base="ou=managed,dc=eastcom-ca,dc=com"
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to dn.base="ou=targets,ou=managed,dc=eastcom-ca,dc=com"
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to dn.base="ou=midden,ou=targets,ou=managed,dc=eastcom-ca,dc=com"
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to dn.one="ou=midden,ou=targets,ou=managed,dc=eastcom-ca,dc=com"
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to dn.base="ou=JMS,dc=eastcom-ca,dc=com"
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by users read

access to *
        by group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com" write
        by self write
        by aci write
#######################################################################
# ldbm database definitions
#######################################################################

database        bdb
suffix          "dc=eastcom-ca,dc=com"
rootdn          "cn=admin,dc=eastcom-ca,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          {SHA}0DPiKuNIrrVmD8IUCuw1hQxNqZc=
# 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 default pres,eq
index   objectClass     eq  请教大虾原因 thank you

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2006-12-29 14:53 |只看该作者
aquarius.schema是自己建立的吗?里面有错误.
另外,系统中有不同的bdb版本,注意版本要一致.检查一下环境变量中的bdb的位置.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP