免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] FREEBSD6下安装openldap不能启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-14 12:00 |只看该作者 |倒序浏览
mail# /usr/local/etc/rc.d/slapd start
Starting slapd.
Unrecognized database type (bdb)
debug.log
Sep 14 09:28:21 mail newsyslog[240]: logfile first created
Sep 14 10:37:03 mail slapd[71882]: @(#) $OpenLDAP: slapd 2.3.27 (Sep 14 2006 10
Sep 14 10:37:03 mail slapd[71882]: connections_destroy: nothing to destroy.
Sep 14 10:37:03 mail slapd[71882]: /usr/local/etc/openldap/slapd.conf: line 57:
Sep 14 10:37:03 mail slapd[71882]: slapd stopped.

论坛徽章:
0
2 [报告]
发表于 2006-09-14 12:02 |只看该作者

mail# ee /usr/local/etc/openldap/slapd.conf

#
# 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/nis.schema
include         /usr/local/etc/openldap/schema/extmail.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         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args

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

# 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=codesnet.com"
rootdn          "cn=Manager,dc=codesnet.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       /var/db/openldap-data
# Indices to maintain
index   objectClass     eq

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
3 [报告]
发表于 2006-09-14 12:35 |只看该作者
估计是这两行吧
suffix          "dc=codesnet.com"
rootdn          "cn=Manager,dc=codesnet.com"

换成"dc=codesnet,dc=com"看看.

论坛徽章:
0
4 [报告]
发表于 2006-09-14 13:19 |只看该作者
还是不行。
modulepath     /usr/local/libexec/openldap
moduleload     back_bdb
这样就可以了。谢谢斑竹

[ 本帖最后由 lyfp00 于 2006-9-14 13:21 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP