Openldap无法启动的问题 5C

[root@hadoopclouder03 ~]# slapd -d 1
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /etc/openldap/ldap.conf
ldap_init: using /etc/openldap/ldap.conf
ldap_init: HOME env is /root
ldap_init: trying /root/ldaprc
ldap_init: trying /root/.ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
55e44d1d @(#) $OpenLDAP: slapd 2.4.39 (Mar 6 2015 04:35:49) $
mockbuild@worker1.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.39/openldap-2.4.39/servers/slapd
ldap_pvt_gethostbyname_a: host=hadoopclouder03.example.com, r=0
55e44d1d daemon_init: listen on ldap:///
55e44d1d daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
55e44d1d daemon: listener initialized ldap:///
55e44d1d daemon_init: 2 listeners opened
ldap_create
55e44d1d slapd init: initiated server.
55e44d1d slap_sasl_init: initialized!
55e44d1d bdb_back_initialize: initialize BDB backend
55e44d1d bdb_back_initialize: Berkeley DB 5.3.21: (May 11, 2012)
55e44d1d hdb_back_initialize: initialize HDB backend
55e44d1d hdb_back_initialize: Berkeley DB 5.3.21: (May 11, 2012)
55e44d1d mdb_back_initialize: initialize MDB backend
55e44d1d mdb_back_initialize: MDB 0.9.11: (January 15, 2014)
55e44d1d slapd destroy: freeing system resources.
55e44d1d slapd stopped.
55e44d1d connections_destroy: nothing to destroy.
[root@hadoopclouder03 ~]# find / -name libiodbc
[root@hadoopclouder03 ~]# slaptest
55e44d57 /etc/openldap/schema/inetorgperson.schema: line 36 attributetype: Duplicate attributeType: "2.16.840.1.113730.3.1.1"
slaptest: bad configuration file!

/etc/openldap/slapd.conf文件内容为:

$OpenLDAP$

#

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/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/java.schema
include /etc/openldap/schema/openldap.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 /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args

#######################################################################

sql database definitions

#######################################################################

database sql
suffix "o=example,c=com"
rootdn "cn=root,o=example,c=com"
rootpw 123456
dbname ldap
dbuser ldap
dbpasswd 123456
subtree_cond "ldap_entries.dn LIKE CONCAT('%',?)"
insentry_stmt "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval) VALUES (?,?,?,?)"
has_ldapinfo_dn_ru no

4个回答

使用iodbctest没有问题,
[root@hadoopclouder03 openldap]# iodbctest
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0709.0909

Enter ODBC connect string (? shows list): DSN=ldap
Driver: 05.03.0004 (libmyodbc5a.so)

SQL>show tables;

Tables_in_ldap

authors_docs

certs

documents

institutes

ldap_attr_mappings

ldap_entries

ldap_entry_objclasses

ldap_oc_mappings

persons

phones

referrals

result set 1 returned 11 rows.

SQL>
不知道我配置的openldap为啥总是不找Mysql数据库呢?求指教

[root@hadoopclouder03 ~]# slapd -d 256
55e45093 @(#) $OpenLDAP: slapd 2.4.39 (Mar 6 2015 04:35:49) $
mockbuild@worker1.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.39/openldap-2.4.39/servers/slapd
Unrecognized database type (sql)
55e45093 /etc/openldap/slapd.conf: line 27: failed init (sql)
55e45093 slapd stopped.
55e45093 connections_destroy: nothing to destroy.
[root@hadoopclouder03 ~]#

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐