[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: bind-dyndb-ldap and AttributeType not found
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: Re: bind-dyndb-ldap and AttributeType not found
- From: Brendan Kearney <bpk678@gmail.com>
- Date: Tue, 28 May 2013 20:36:22 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:mime-version:content-transfer-encoding; bh=bH3RC3cbD1/sUwM1HRH4b45FvBDG2TsXdDUAGPPho7g=; b=mGIEij/9y6xGyu7Tbo9zJgdKWBi1ZpuJFUHMyiUaBKMiLUttIPQa7hIE1vhEBrs2OO laG1iHid8e6X4sOfSCAsUvSy2d2ln7v54a0lZ+JHdfB1NYWFVLjtSeHkRhO4LDH6ybw1 hgZtXSR0Y9V/A2c+qC9BEmMkdd3f+pWZOqI4qSIi/5O6uRIf/MrAuFpzxlc6O6zorwzT TkbJGxbr+pmoy821KAzlMu996S95JCzjnUaDNNJsJeHDyD1kb099KjLIfFGEQpXAZCw9 Jecig2PkFpOZGZd+wrnCCmXL9qjEqQM3tDB3z78F6/3o+g8D2NX6R6O2EwwYWaKrqMay MiOA==
- In-reply-to: <1369748239.2360.33.camel@desktop.bpk2.com>
- References: <1369748239.2360.33.camel@desktop.bpk2.com>
to answer my own question, and possibly help others, i had to "include"
each of the schemas that were prerequisites for the bind-dyndb-ldap
schema. i had the line:
include /etc/openldap/schema/dns-dyndb.schema
but the ARecord prerequisite was not fulfilled in the config. i had to
add the line needed:
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/dns-dyndb.schema
the slaptest then failed because "person" was not defined. it then
became:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/dns-dyndb.schema
with this the schema loaded and was rewritten for cn=config format and
the ldif file was placed in the correct directory. i wound up removing
the duplicated core and cosine ldif files from that directory.
On Tue, 2013-05-28 at 09:37 -0400, Brendan Kearney wrote:
> all,
>
> i am trying to load the bind-dyndb-ldap schema into my ldap instance and
> keep getting an error 'AttributeType not found: "ARecord"'. from what i
> can tell, the ARecord AttributeType is defined by the cosine schema,
> which is loaded and present in the ldap instance. I have the dnszone
> schema loaded too and i am serving static dns entries out of ldap right
> now. it would seem that the prerequisites for bind-dyndb-ldap are
> fulfilled, but i cant load the schema. some details:
>
> [root@server cn=schema]# slapd -V
> @(#) $OpenLDAP: slapd 2.4.26 (Jun 27 2012 15:27:46) $
>
> mockbuild@x86-16.phx2.fedoraproject.org:/builddir/build/BUILD/openldap-2.4.26/openldap-2.4.26/build-servers/servers/slapd
>
> [root@server schema]# slaptest -v -d9 -f ./dns-dyndb.schema
> -F ../slapd.d/cn\=config/cn\=schema/
> slaptest init: initiated tool.
> slap_sasl_init: initialized!
> bdb_back_initialize: initialize BDB backend
> bdb_back_initialize: Berkeley DB 5.2.36: (September 14, 2011)
> hdb_back_initialize: initialize HDB backend
> hdb_back_initialize: Berkeley DB 5.2.36: (September 14, 2011)
> null_back_initialize: initialize null backend
> backend_startup_one: starting "cn=config"
> ./dns-dyndb.schema: line 296 objectclass: AttributeType not found:
> "ARecord"
> slaptest: bad configuration directory!
>
> Since the cosine schema is loaded, the ARecord AttributeType is
> available for reference by this schema, but it does not seem to load.
> am i missing something obvious? can anyone shed light on this?
>
> to make sure i was going about this right, i also tried it this way:
>
> [root@server openldap]# cat this.out
> include /etc/openldap/schema/dns-dyndb.schema
> [root@server openldap]# slaptest -v -d9 -f /etc/openldap/this.out
> -F /etc/openldap/slapd.d/
> slaptest init: initiated tool.
> slap_sasl_init: initialized!
> bdb_back_initialize: initialize BDB backend
> bdb_back_initialize: Berkeley DB 5.2.36: (September 14, 2011)
> hdb_back_initialize: initialize HDB backend
> hdb_back_initialize: Berkeley DB 5.2.36: (September 14, 2011)
> null_back_initialize: initialize null backend
> backend_startup_one: starting "cn=config"
> /etc/openldap/schema/dns-dyndb.schema: line 296 objectclass:
> AttributeType not found: "ARecord"
> slaptest: bad configuration directory!
>
> still got the error...
>