John Cooter wrote:
I did so, and got the message below. I was attempting to import it with a minimal import, to create the .ldif file that would be able to be included in an ldapadd statement.
If you have an existing dynamic configuration then you have to add complete schema via LDAP. The include statements do not work with dynamic configuration.
With static configuration also note that the order of include statements does matter.
Ciao, Michael.
-----Original Message----- From: Michael Ströder [mailto:michael@stroeder.com] Sent: Tuesday, May 02, 2017 3:43 PM To: John Cooter jcooter@atlantech.net; openldap-technical@openldap.org Subject: Re: Issue importing CGP schema into LDAP (centos 7)
John Cooter wrote:
Upon attempting to perform a “slaptest -f test.conf -F testing” where test.conf contains only an include statement that points to /etc/openldap/schema/cgp.schema, and testing is an empty directory, I receive the following error message:
59033edc /etc/openldap/schema/cgp.schema: line 640 objectClass: ObjectClass not found: "organization"
Normally you have to include various schema files shipped with OpenLDAP and after that add the include statements for your custom schema.
I am able to verify that the various base includes in my LDAP server do include an objectClass “organization” and can verify same in phpLDAPadmin, and in other methods.
So simply add /etc/openldap/schema/cgp.schema to your existing config file and test this config file with slaptest.
Ciao, Michael.