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

RE: Issue importing CGP schema into LDAP (centos 7)



Because, doing so, gives the following error:

[root@ldapv openldap]# slaptest -f test.conf -F testing
5909d186 /etc/openldap/schema/cgp.schema: line 8 attributetype: Duplicate attributeType: "2.16.840.1.113730.3.1.241"
slaptest: bad configuration directory!

Referencing the following: 

attributetype ( 2.16.840.1.113730.3.1.241
        NAME 'displayName'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )



-----Original Message-----
From: openldap-technical [mailto:openldap-technical-bounces@openldap.org] On Behalf Of John Cooter
Sent: Wednesday, May 03, 2017 8:29 AM
To: openldap-technical@openldap.org
Subject: RE: Issue importing CGP schema into LDAP (centos 7)

So, just to confirm what you're saying, that EVEN THOUGH the existing schema has all the prerequisite objectClass and other object types, and even though I'm attempting to use slaptest to convert a single extended .schema, a holdover from an earlier version of openldap, to an .ldif in the configuration cn, that my test.conf, must have lines that include all the other base schema files as well?

-----Original Message-----
From: Quanah Gibson-Mount [mailto:quanah@symas.com]
Sent: Tuesday, May 02, 2017 5:21 PM
To: John Cooter <jcooter@atlantech.net>; openldap-technical@openldap.org
Subject: RE: Issue importing CGP schema into LDAP (centos 7)

--On Tuesday, May 02, 2017 5:02 PM -0400 John Cooter <jcooter@atlantech.net> wrote:

> The existing configuration, was created as follows:
> Install ldap and related services
> ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif 
> ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif 
> ldapadd -Y EXTERNAL -H ldapi:/// -f 
> /etc/openldap/schema/inetorgperson.ldif create test.conf which only 
> contains a single line: include /etc/openldap/schema/cgp.schema run 
> slaptest statement, as listed below. Get error.
> This slaptest statement should normally allow me to create the ldif to 
> add to the schema, but it keeps failing. And I'm trying to figure out 
> why and what I'm doing wrong.

Your test LDIF file for converting schema must include all other schema that it is dependent upon for it to be able to convert properly.

--Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>