summaryrefslogtreecommitdiff
path: root/nsswitch/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-02-21 15:37:52 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-02-21 15:59:28 +0100
commitf26db53273a8f97267982af9799c26b49ef5b216 (patch)
treeb5c868192416bd9b067eb89204663780c8920112 /nsswitch/tests
parent153dfc514c5885e52f11852b25dd018fc1160067 (diff)
downloadsamba-f26db53273a8f97267982af9799c26b49ef5b216.tar.gz
nsswitch: Fix idmap rfc2307 test with system ldb.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'nsswitch/tests')
-rwxr-xr-xnsswitch/tests/test_idmap_rfc2307.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/nsswitch/tests/test_idmap_rfc2307.sh b/nsswitch/tests/test_idmap_rfc2307.sh
index b9efd346c8a..d3087a171b5 100755
--- a/nsswitch/tests/test_idmap_rfc2307.sh
+++ b/nsswitch/tests/test_idmap_rfc2307.sh
@@ -18,8 +18,17 @@ DC_PASSWORD="$9"
echo called with: $1 $2 $3 $4 $5 $6 $7 $8 $9
wbinfo="$VALGRIND $BINDIR/wbinfo"
-ldbadd="$BINDIR/ldbadd"
-ldbdel="$BINDIR/ldbdel"
+
+ldbadd="ldbadd"
+if [ -x "$BINDIR/ldbadd" ]; then
+ ldbadd="$BINDIR/ldbadd"
+fi
+
+ldbdel="ldbdel"
+if [ -x "$BINDIR/ldbdel" ]; then
+ ldbdel="$BINDIR/ldbdel"
+fi
+
failed=0
. `dirname $0`/../../testprogs/blackbox/subunit.sh