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

Re: Convert *.schema to *.ldif



On Tue, Apr 3, 2012 at 9:28 AM, Francis Swasey <Frank.Swasey@uvm.edu> wrote:
> I don't see any description in the admin guide about how to convert a *.schema file into a
> *.ldif file.  Google tells me that most people are using slaptest with the -F and -f parameters
> with a specially crafted slapd.conf file.
>
> As the person who is responsible for a *.schema file and develops it not on a machine that has
> the openldap server software installed, that process is not anything I'm interested in.  Looks
> like it should be a fairly simple set of transformations.  Looking at the *.schema and *.ldif
> that are provided with the openldap source - I am left wondering how they were created, since
> they have comments, they were obviously not created via the slaptest -F <x> -f <y> method.
>
> I would like to programatically do this -- my ability to vi two files and make identical
> changes has been known to be fallable!
>
> I found the fusiondirectory-schema2ldif perl script - but it is not complete and silently drops
> keywords it doesn't like which is a really nasty coding style generating garbage from quality
> schemas.
>
> Suggestions?  Code examples?
>
      I *believe* the reason you create the .conf file with all the
schemas yours depend on is because it somehow needs to know its
dependencies to continue.

> Thanks,
>
> --
> Frank Swasey                    | http://www.uvm.edu/~fcs
> Sr Systems Administrator        | Always remember: You are UNIQUE,
> University of Vermont           |    just like everyone else.
>  "I am not young enough to know everything." - Oscar Wilde (1854-1900)
>
>