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

Re: adding schema to back-config

Dieter Kluenter wrote:
Howard Chu <hyc@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.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support