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

Re: (ITS#6258) slaptest -f slapd.conf -F slapd.d returns errors without DB



abartlet@samba.org wrote:
> Full_Name: Andrew Bartlett
> Version: CVS HEAD
> OS: Fedora 10
> URL:
> Submission from: (NULL) (59.167.251.137)
>
>
> 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/