atom feed5 messages in org.openldap.openldap-softwareRe: adding schema to back-config
FromSent OnAttachments
Dieter KluenterJun 10, 2005 12:17 pm 
Howard ChuJun 10, 2005 12:43 pm 
Dieter KluenterJun 10, 2005 1:46 pm 
Howard ChuJun 10, 2005 2:25 pm 
Howard ChuJun 10, 2005 4:17 pm 
Subject:Re: adding schema to back-config
From:Howard Chu (hy@symas.com)
Date:Jun 10, 2005 2:25:33 pm
List:org.openldap.openldap-software

Dieter Kluenter wrote:

Howard Chu <hy@symas.com> writes:

Dieter Kluenter wrote:

Hi, I am experimenting with back-config. The schema files initially defined in slapd.conf are included and rewritten in cn=schema, but how can additional schema files be added persistantly? Adding an include entry in cn=config just works in the actual session, but after a restart this additional include{x}.ldif is not read at all.

Include files are only supported for backward compatibility with slapd.conf, they really are not supported under cn=config. Add new schema as an entry under cn=schema,cn=config.

Is there any tool to convert schema files to ldif format?

slapd itself. When you run slapd with both -f and -F specified, it will convert all of the slapd.conf and any included files into LDIF. Also any of the slap tools will do the same. slapacl will do it in 2.3.3beta without invoking a lot of extraneous functions; slaptest works in the current HEAD and 2.3 candidate. Then you can issue an ldapsearch against the config backend to retrieve the individual schema entries, or just copy the files directly out of the cn=config file hierarchy.