summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-11-01 10:17:23 -0700
committerJelmer Vernooij <jelmer@samba.org>2014-11-19 18:30:07 +0100
commit49445541e750328fc9b766593eddc61a65f97ccb (patch)
tree4429cfa7a0ff9030d880935e0302d9172f40dbcd /nsswitch
parentfb08cd5310c2c806e49597da4c3a310b058645ae (diff)
downloadsamba-49445541e750328fc9b766593eddc61a65f97ccb.tar.gz
Support using system ldbmodify.
Fixes this test when bin/ldbmodify isn't built because we're using the system ldbmodify. Change-Id: I2ff0d9808245353006c6be4989976a3edad8f98e Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'nsswitch')
-rwxr-xr-xnsswitch/tests/test_rfc2307_mapping.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/nsswitch/tests/test_rfc2307_mapping.sh b/nsswitch/tests/test_rfc2307_mapping.sh
index f1e3ea9ce6a..4fd93a4ddaf 100755
--- a/nsswitch/tests/test_rfc2307_mapping.sh
+++ b/nsswitch/tests/test_rfc2307_mapping.sh
@@ -19,7 +19,12 @@ failed=0
samba4bindir="$BINDIR"
wbinfo="$VALGRIND $samba4bindir/wbinfo"
samba_tool="$VALGRIND $samba4bindir/samba-tool"
-ldbmodify="$samba4bindir/ldbmodify"
+if [ -f "$samba4bindir/ldbmodify" ]; then
+ ldbmodify="$samba4bindir/ldbmodify"
+else
+ # Using system ldbmodify
+ ldbmodify="ldbmodify"
+fi
. `dirname $0`/../../testprogs/blackbox/subunit.sh