openldap mmr/olc-provision-backend-tests

Howard Chu hyc at highlandsun.com
Wed Mar 11 20:36:47 GMT 2009


>Date: Wed, 11 Mar 2009 17:57:49 +1100
 >From: Andrew Bartlett <abartlet at samba.org>
>To: Michael Str?der <michael at stroeder.com>
 >Cc: samba-technical at lists.samba.org

 >On Mon, 2009-03-09 at 23:47 +0100, Michael Ströder wrote:
>> > Oliver Liebel wrote:
>>> > >
>>> > >
>>> > > Michael Ströder schrieb:
>>>> > >> Oliver Liebel wrote:
>>>> > >>
>>>>>> > >>>> What we are missing at the moment however are tests.  We need to detect
>>>>>> > >>>> in configure if we have the right version of OpenLDAP,
>>>>>> > >>>>
>>>>> > >>> yes. maybe we can start with the slapd-path as a
>>>>> > >>> configure-script-option,
>>>>> > >>> (e.g. --with-slapd=/usr/local/libexec/)
>>>>> > >>>
>>>> > >>
>>>> > >> Shouldn't that be the executable itself?
>>>> > >>
>>>> > >> --with-slapd=/usr/local/libexec/slapd
>>>> > >>
>>> > > yes, but "slapd" can be hardcoded, so the path should do it.
>> >
>> > Hmm, not sure about this. You'll never know what distributors do with
>> > filenames to let e.g. different OpenLDAP versions co-exist.
>
> Annoyingly we will actually need to detect paths to slapd and slaptest,
> as distributions disagree (compared with 'make install' form OL) on the
> relative location for these binaries.

Just worry about slapd, all of the other slap* tools are just symlinks to 
slapd anyway. And you can invoke any of them explicitly using "slapd 
-T<tool>". (See the slapd(8) manpage...)

So just locate slapd, then use slapd -Ttest instead of slaptest.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/


More information about the samba-technical mailing list