[Date Prev][Date Next] [Chronological] [Thread] [Top]

"documentDN" for objectClass "inetOrgPerson" is not defined in schema



Hi,

We want to use and already contact database on MySQL from a groupware
application (eGroupware) as backend for OpenLDAP. First step I installed
OpenLDAP 2.2.23 with the test db (mysql) and MySQL 4.0.23 on Debian to
understand the backend sql but I got an error on slapd starting :

# slapd -f /etc/ldap/slapd.conf -4 -d 5
[...]
backsql_oc_get_attr_mapping(): attribute "documentDN" for objectClass
"inetOrgPerson" is not defined in schema: attribute type undefined
[...]
then
slapd stopped.

We have tested ODBC setting with iodbctest and everything is right, we
have added the directive "has_ldapinfo_dn_ru no" as well in slapd.conf

----------------------------------------------------------
slapd.conf
----------------------------------------------------------
# $OpenLDAP:
pkg/ldap/servers/slapd/back-sql/rdbms_depend/mysql/slapd.conf,v 1.3
2001/08/02 15:28:59 mit Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/inetorgperson.schema

schemacheck     on
backend         sql
has_ldapinfo_dn_ru      no

# 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/slapd/slapd.pid
argsfile        /var/run/slapd.args

#######################################################################
# sql database definitions
#######################################################################

database        sql
suffix          "o=sql,c=RU"
rootdn          "cn=root,o=sql,c=RU"
rootpw          {crypt}xxxxxxxxxxxx
dbname          "ldap_sql"
dbuser          "ldap"
dbpasswd        xxxxxxxxxxxxxx
subtree_cond    "ldap_entries.dn LIKE CONCAT('%',?)"
insentry_query  "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval)
VALUES (?,?,?,?)"
-----------------------------------------------------------------------

I need help, thanks in advance.

Sam.

--

Sam Przyswa - Chef de projet
Arial Concept - Intégrateur Internet
36, rue de Turin - 75008 - Paris - France
Tel: 01 40 54 86 04 - Fax: 01 40 54 83 01
Web: http://www.arial-concept.com - Email: Info@arial-concept.com




-- Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. MailScanner remercie transtec pour son soutien.