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

Re: back-config, includes



Hallvard B Furuseth wrote:

Pierangelo Masarati writes:


Howard Chu wrote:



You're welcome to suggest something else. There's no reason that the
character used in the filesystem needs to be the same as the one in
the DIT, but it would be a bad idea to make the DIT representation vary.


One quick approach is to allow custom replacement of chars from DIT to
FS and forth. One could freely remap "=", "{", "}". and any other
offending char (something like autoconf rewriting all FS-specific chars
to "_", but reversible).



Sounds nice. And actually I would suggest "" and "-" as default instead of "{" and "}".

Though I'm not sure why schema files need that much ordering
functionality, if this is part of the automatically maintained ordering
you mentioned elsewhere.  The maintainer has to specify ordering of
schema files anyway, the server can't reorder them.

Would it be enough to simply have the maintainer name the schema files
  10-core.ldif
  15-cosine.ldif

etc and let back-config sort the files in a directory and read them in
the sort order? Probably with a sort algorithm which sorts 5-x.ldif as
less than 10-x.ldif. Or one could declare that the numbers are to
be considered the decimals after a "0.":-)


In principle, your trick (although a bit involved and demanding from an admin's side; I wouldn't rely too much on people naming files according to any rule, regardless of its simplicity) should work. But value ordering is important for other directives and config entry attributes, so we need a general rule that applies to all multi-valued attrs (see "access", for instance and, in general, the rdn values of most if not all entries). Moreover, we cannot rely on filesystem ordering, as Howard alredy pointed out.

p.


SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497