[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
bdb_dn2id: get failed: DB_NOTFOUND
- To: openldap-software@OpenLDAP.org
- Subject: bdb_dn2id: get failed: DB_NOTFOUND
- From: jay alvarez <ldapb0y@yahoo.com>
- Date: Thu, 9 Jun 2005 03:07:21 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=p15AY71KOhrnstipQDKDa/E+ExzxeDMidB8GOOonfRPkghFqWyr6kWCHGK64I13W2zFqoY0sr4BOhSmSHSKWeC34FqnDDippU4Pb4Xzg1UQ95UW+Zr7b2t/ul3lzulWXuibULk2gtWuYk601kDD24CGVMU+JqgT1KLCO3PAkwHQ= ;
Hi,
I tried copying and pasting the example on quick start
guide. All of them, the slapd.conf, example.ldiff, and
yet after entering the ldap password 'secret':
ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f
example.ldif
I got this error:
adding new entry "dc=example,dc=com "
ldap_add: Invalid syntax (21)
additional info: objectclass: value #0 invalid
per syntax
Here's the content of my ldiff:
dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example
dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager
Here's my slapd.conf:
include
/usr/local/openldap/etc/openldap/schema/core.schema
pidfile /usr/local/openldap/var/run/slapd.pid
argsfile /usr/local/openldap/var/run/slapd.args
access to * by * read
loglevel -1
backend bdb
database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
directory /usr/local/openldap/var/openldap-data
and here's a snippet of my /var/log/debug.log where I
got that Subject "bdb_dn2id", which I think might be
the portion where the error occured:
Jun 9 18:04:07 gaheris slapd[1565]: daemon: select:
listen=7 active_threads=0 tvp=NULL
Jun 9 18:04:07 gaheris slapd[1565]: do_add
Jun 9 18:04:07 gaheris slapd[1565]: >>>
dnPrettyNormal: <dc=example,dc=com >
Jun 9 18:04:07 gaheris slapd[1565]: <<<
dnPrettyNormal: <dc=example,dc=com>,
<dc=example,dc=com>
Jun 9 18:04:07 gaheris slapd[1565]: do_add: dn
(dc=example,dc=com)
Jun 9 18:04:07 gaheris slapd[1565]: conn=8 op=1 ADD
dn="dc=example,dc=com"
Jun 9 18:04:07 gaheris slapd[1565]:
bdb_dn2entry("dc=example,dc=com")
Jun 9 18:04:07 gaheris slapd[1565]: => bdb_dn2id(
"dc=example,dc=com" )
Jun 9 18:04:07 gaheris slapd[1565]: <= bdb_dn2id: get
failed: DB_NOTFOUND: No matching key/data pair found
(-30989)
Jun 9 18:04:07 gaheris slapd[1565]: send_ldap_result:
conn=8 op=1 p=3
Jun 9 18:04:07 gaheris slapd[1565]: send_ldap_result:
err=21 matched="" text="objectclass: value #0 invalid
per syntax"
Jun 9 18:04:07 gaheris slapd[1565]:
send_ldap_response: msgid=2 tag=105 err=21
Jun 9 18:04:07 gaheris slapd[1565]: conn=8 op=1
RESULT tag=105 err=21 text=objectclass: value #0
invalid per syntax
Jun 9 18:04:07 gaheris slapd[1565]: daemon: activity
on 1 descriptors
Jun 9 18:04:07 gaheris slapd[1565]: daemon: activity
on:
Thanks a lot!
__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/