1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

testprogs: If built against system db use the system tools in ldapcmp_restoredc.sh

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Andreas Schneider 2022-12-04 19:46:36 +01:00 committed by Volker Lendecke
parent 9a97e54f35
commit 7d8347e890

View File

@ -15,10 +15,15 @@ shift 2
. $(dirname $0)/subunit.sh
ldbsearch="${VALGRIND} ldbsearch"
if [ -x "${BINDIR}/ldbsearch" ]; then
ldbsearch="${VALGRIND} ${BINDIR}/ldbsearch"
fi
basedn()
{
SAMDB_PATH=$1
$BINDIR/ldbsearch -H $SAMDB_PATH --basedn='' --scope=base defaultNamingContext | grep defaultNamingContext | awk '{print $2}'
${ldbsearch} -H $SAMDB_PATH --basedn='' --scope=base defaultNamingContext | grep defaultNamingContext | awk '{print $2}'
}
ldapcmp_with_orig()