speedy zinc
2005-Nov-07 02:23 UTC
[Fedora-directory-users] numerical prefix of schema file
Hi, I see each schema file is prefixed with a numerical value, such as: 00core.ldif 50ns-wcal.ldif 51ns-calendar.ldif 60pam-plugin.ldif 99user.ldif so what does the numerical prefix mean? I just know that if I change the schema from the console, it ends up in 99user.ldif. But what about the others? Is it for loading orders, or something else? If I add my own schema files, which value do I use for the prefix? thanks sz __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
Mike Jackson
2005-Nov-07 10:46 UTC
Re: [Fedora-directory-users] numerical prefix of schema file
speedy zinc wrote:> so what does the numerical prefix mean?It is for loading order.> I just know that if I change the schema from the console, it ends up in > 99user.ldif.You should avoid adding schema from the console or over-the-wire, because it will be handled in this way, and there are some problems with using 99user.ldif, e.g. if you need to install version-controlled schema to your servers then this technique will definitely not work.> If I add my own schema files, which value do I use for > the prefix?You can use whatever you want, even numbers that are already used. The schema loader looks at the number first, then the alphabetical order, e.g. 50abc.ldif would be loaded before 50myschema.ldif. The whole purpose behind the loading order is for dependencies, so if you write an objectclass in myschema.ldif and you specify it as a subclass to an objectclass which exists in "25somecoolschema.ldif", then you will want to number "myschema.ldif" with a prefix higher than 25 or if you use 25 then you need to start the filename with something alphabetically later than "somecoolschema". All of this is documented in the Deployment Guide: http://www.redhat.com/docs/manuals/dir-server/deploy/7.1/schema.html#17755 BR, Mike