[Date Prev][Date Next]
Re: (ITS#6258) slaptest -f slapd.conf -F slapd.d returns errors without DB
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#6258) slaptest -f slapd.conf -F slapd.d returns errors without DB
- From: firstname.lastname@example.org
- Date: Tue, 29 Sep 2009 05:35:05 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> Full_Name: Andrew Bartlett
> Version: CVS HEAD
> OS: Fedora 10
> Submission from: (NULL) (126.96.36.199)
> When running slaptest to convert between slapd.conf and slapd.d format
> configuration, before the databases exist, the slaptest returns with an non-zero
> error code and prints warnings.
> If I add -u to the command line, then it does not perform the conversion.
> In Samba4's provision system, I wish to run using cn=config from the very start,
> and so wish to do the conversion before the databases are created.
> I had expected -u to quiet the warnings, but it was unexpected that it would
> also not perform the conversion. (I understand it is also considered a 'dry
> run' parameter).
> Can I have a new parameter added to allow a behaviour of 'do the conversion,
> don't check the database vaildity'?
I've gone a slightly different route, but it will give the same effect. Now if
you run slaptest with '-n databasenumber' it will only open that specific
database (and test it) instead of trying to open all databases. So for your
case, just add '-n 0' and it will be fine.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/