免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: py
打印 上一主题 下一主题

[ldap] 写给所有OpenLDAP不能正常启动的人 [复制链接]

论坛徽章:
0
101 [报告]
发表于 2006-12-25 14:34 |只看该作者

请帮忙看看如下问题

./slapd -d 256启动slapd后,显示如下,请问都有哪些问题?
================================================
@(#) $OpenLDAP: slapd 2.3.27 (Dec 12 2006 10:35:02) $
        root@localhost.localdomain:/root/testproject/ldap/openldap-2.3.27/servers/slapd
daemon: IPv6 socket() failed errno=97 (Address family not supported by
protocol)bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Warning - No DB_CONFIG file found in directory
/usr/local/openldap/var/openldap-data: (2)
Expect poor performance for suffix dc=nari-china,dc=com.
slapd starting

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
102 [报告]
发表于 2006-12-25 18:27 |只看该作者
编译的时候可以把IPv6 disable掉就不会有相关问题了.
你的db没有正常退出, 或出现了数据问题, 2.3.x会尝试用dbrecovery恢复.
DB_CONFIG file是用来优化数据库的, 这个文件应该放在/usr/local/openldap/var/openldap-data这个目录.

论坛徽章:
0
103 [报告]
发表于 2006-12-26 09:47 |只看该作者

回复 102楼 py 的帖子

好多多谢,我试一试!!

论坛徽章:
0
104 [报告]
发表于 2006-12-26 10:46 |只看该作者

请教slapd.conf的配置

我用的是OPENLDAP2.3.27, 我运行下面的命令是提示照不到文件:"/usr/local/openldap/var/openldap-data/id2entry.bdb",但是我仔细检查了,这个文件是存在的,请教这知道是什么原因? 哪个知道是什么原因,请指教一下,非常感激!

[root@localhost libexec]# ./slapd -d 256
@(#) $OpenLDAP: slapd 2.3.27 (Dec 22 2006 11:06:46) $
        root@localhost.localdomain:/root/openldap-2.3.27/servers/slapd
bdb_db_open: db_open(/usr/local/openldap/var/openldap-data/id2entry.bdb) failed: No such file or directory (2)
bdb(dc=example,dc=com): Unknown locker ID: 0
backend_startup_one: bi_db_open failed! (2)
bdb_db_close: alock_close failed
slapd stopped.
connections_destroy: nothing to destroy.

论坛徽章:
0
105 [报告]
发表于 2006-12-26 10:54 |只看该作者

您好,在ldapadd一个ldif文件时,出现如下错误:

您好,在ldapadd一个ldif文件时,请问出现如下错误原因(google上没有搜索到):
=====================================
adding new entry "dc=info,dc=com"
ldap_add: DSA is unwilling to perform
        additional info: no global superior knowledge

ldif_record() = 53
=====================================
谢谢!!!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
106 [报告]
发表于 2006-12-26 17:30 |只看该作者
原帖由 wubm 于 2006-12-26 10:46 发表
我用的是OPENLDAP2.3.27, 我运行下面的命令是提示照不到文件:"/usr/local/openldap/var/openldap-data/id2entry.bdb",但是我仔细检查了,这个文件是存在的,请教这知道是什么原因? 哪个知道是什么原因,请 ...

是第一次启动就这样提示吗?
安装openldap的时候,make test都成功了吗?
配置文件时候有做过什么改动?
从错误提示上看就是指定的文件不存在.

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
107 [报告]
发表于 2006-12-26 17:36 |只看该作者
原帖由 yalechen 于 2006-12-26 10:54 发表
您好,在ldapadd一个ldif文件时,请问出现如下错误原因(google上没有搜索到):
=====================================
adding new entry "dc=info,dc=com"
...

非启动问题还是开个新贴吧.
另外, 最好把相关的情况写清楚,slapd.conf文件的内容?ldif文件的内容?..

论坛徽章:
0
108 [报告]
发表于 2006-12-28 16:06 |只看该作者
斑竹你好 询问一下  ldap启动是由这种报错 [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.我的sladp。conf是这样的 nclude         /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


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 询问一下原因

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

论坛徽章:
0
110 [报告]
发表于 2007-01-12 21:32 |只看该作者

关于OPNE LDAP slapd -d 25

slapd -d 25
@(#) $OpenLDAP: slapd 2.2.13 (Apr 24 2006 23:00:46) $
        root@hs20-bc1-3.build.redhat.com:/usr/src/build/738770-i386/BUILD/openld              ap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: bind(6) failed errno=98 (Address already in use)
daemon: bind(6) failed errno=98 (Address already in use)
slap_open_listener: failed on ldap:///
slapd stopped.
connections_destroy: nothing to destroy.
请问以上的问问题出在哪

TO:各位高手

Jan 12 20:33:50 master ldap:  succeeded
Jan 12 20:33:50 master slapd[7736]: sql_select option missing
Jan 12 20:33:50 master slapd[7736]: auxpropfunc error no mechanism available
Jan 12 20:34:00 master ldap: slapd startup succeeded
Jan 12 20:34:02 master ldap: slurpd startup succeeded

我启动service ldap restart时,都有一个
Jan 12 20:33:50 master slapd[7736]: sql_select option missing
Jan 12 20:33:50 master slapd[7736]: auxpropfunc error no mechanism available
错误,请问,这是为什么,我在用windows2000加入PDC时,老是说我要安装认证,而我的ldap配置正确,不知问题在哪.
cat slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/corba.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/dyngroup.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/misc.schema
include         /etc/openldap/schema/openldap.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/samba.schema



# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2

# 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/slapd.pid
argsfile        /var/run/slapd.args
#loglevel 1
# Load dynamic backend modules:
# modulepath    /usr/sbin/openldap
# moduleload    back_bdb.la
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

# The next three lines allow use of TLS for encrypting connections using a
# dummy test certificate which you can generate by changing to
# /usr/share/ssl/certs, running "make slapd.pem", and fixing permissions on
# slapd.pem so that the ldap user or group can read it.  Your client software
# may balk at self-signed certificates, however.
# TLSCACertificateFile /usr/share/ssl/certs/ca-bundle.crt
# TLSCertificateFile /usr/share/ssl/certs/slapd.pem
# TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem

# 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!

#######################################################################
# ldbm and/or bdb database definitions
#######################################################################

database        bdb
suffix          "dc=wahfaiappliances,dc=cn"
rootdn          "cn=admin,dc=wahfaiappliances,dc=cn"
# Cleartext passwords, especially for the rootdn, should
# be avoided.  See slappasswd( and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw                secret
# rootpw                {crypt}ijFYNcSNctBYg

rootpw      {SSHA}Ym/JWV/J69049ksk494o44p45op45o
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
mode            0600
directory       /var/lib/ldap

# Indices to maintain for this database
index objectClass,uidNumber,gidNumber                           eq
index cn,sn,uid,displayName                                     pres,sub,eq
index memberUid,mail,givenname                                   eq,subinitial
index sambaSID,sambaPrimaryGroupSID,sambaDomainName              eq
#index nisMapName,nisMapEntry            eq,pres,sub

# Replicas of this database
#replogfile /var/lib/ldap/openldap-master-replog
#replica host=ldap-1.example.com:389 starttls=critical
#     bindmethod=sasl saslmech=GSSAPI
#     authcId=host/ldap-master.example.com@EXAMPLE.COM
replogfile /var/lib/ldap/openldap-msater-replog
replica host=master.xxx.cn:389 starttls=critical
      binddn="cn=admin,dc=wahfaiappliances,dc=cn"
            bindmethod=simple  credentials=pidakdi
access to attrs=userPassword,sambaLMPassword,sambaNTPassword
        by self write
        by anonymous auth
        by * none
#access to *
#       by self write
#       by * read
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP