[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Issue importing CGP schema into LDAP (centos 7)
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: RE: Issue importing CGP schema into LDAP (centos 7)
- From: John Cooter <jcooter@atlantech.net>
- Date: Wed, 3 May 2017 11:30:34 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
- Content-language: en-US
- In-reply-to: <F77808473C3043A6DB9924E9@[192.168.1.19]>
- References: <2C05E949E19A9146AF7BDF9D44085B867DD3A878D8@exchange.aoihq.local> <bef4db1b-4fa2-f77d-3609-6cdda041c962@stroeder.com> <2C05E949E19A9146AF7BDF9D44085B867DD3A87936@exchange.aoihq.local> <d24878ec-0fff-8291-9854-4b9bbc7d4d80@stroeder.com> <2C05E949E19A9146AF7BDF9D44085B867DD3A87941@exchange.aoihq.local> <WM!7b47571200eb3229d6e2511f31ee3dfbe2fb214fe235eebf6ac3b94ee3afe0df56869abd30cd92605bdffb80e3fbc653!@mailstronghold-2.zmailcloud.com> <B898A2BF18885D089F38C9BC@[192.168.1.19]> <2C05E949E19A9146AF7BDF9D44085B867DD3A8797A@exchange.aoihq.local> <WM!e8783ce879e7d55ce4e916beee037e9e0ed1780fca60011fb07fe613e0d3c0c9de9b2cb2ee37ee15903b35633e6090c7!@mailstronghold-2.zmailcloud.com> <4666E211D31534041F34F128@[192.168.1.19]> <2C05E949E19A9146AF7BDF9D44085B867DD3A879A5@exchange.aoihq.local> <WM!028fcf15d007ab4227633d9d8a7da8e77d965cc7a3bcd634f74ed80e2446551c41610df89bf1233554757492401e08dc!@mailstronghold-3.zmailcloud.com> <F77808473C3043A6DB9924E9@[192.168.1.19]>
- Thread-index: AdLEIa+xUBz4R2hOT62rA3vFQmw8rgAADJmw
- Thread-topic: Issue importing CGP schema into LDAP (centos 7)
I attempted that this morning as well, and will present reference here:
Contents of test.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/ppolicy.schema
include /etc/openldap/schema/cgp.schema (the referenced schema for conversion)
testing directory created
slaptest -f test.conf -F testing
error message:
5909f790 /etc/openldap/schema/cgp.schema: line 8 attributetype: Duplicate attributeType: "2.16.840.1.113730.3.1.241"
slaptest: bad configuration directory!
-----Original Message-----
From: Quanah Gibson-Mount [mailto:quanah@symas.com]
Sent: Wednesday, May 03, 2017 11:27 AM
To: John Cooter <jcooter@atlantech.net>; openldap-technical@openldap.org
Subject: RE: Issue importing CGP schema into LDAP (centos 7)
--On Wednesday, May 03, 2017 12:17 PM -0400 John Cooter <jcooter@atlantech.net> wrote:
> That was my understanding, that I only needed to include the schema I
> was trying to convert. The "test.conf" file ONLY had the schema for
> conversion included. And since "organization" does come from the base
> schema, I'm wondering WHY I'm getting this error on conversion. I have
> included the problematic object definition earlier in this thread, and
> I really don't see why I'm failing. I can post the entire schema I'm
> trying to convert if that would help. I'm really quite stumped. This
> should be a simple conversion, but why I'm failing when attempting to
> attach to an existing objectClass is beyond my understanding.
The test.conf that you are converting has *zero* knowledge of what you have loaded into cn=config.
Generally what one does is, define a test.conf that includes all the necessary schema to convert the additional schema you are converting, and then you do something like:
mkdir -p /tmp/test-config
slaptest -F /tmp/test-config -f test.conf
Then you can use the converted schema that is written into /tmp/test-config.
--Quanah
--
Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>