summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2020-12-17 12:25:15 +0100
committerAndrew Bartlett <abartlet@samba.org>2021-04-28 03:43:34 +0000
commitfca9c56836cd28875d67eef6e33628f8a51ebd88 (patch)
tree9fd4716f3e2faf16a1807fd980bb8ed3f9ec872e /nsswitch
parent9fb88e6ee79da8912b696bbbcda76f3020662bdf (diff)
downloadsamba-fca9c56836cd28875d67eef6e33628f8a51ebd88.tar.gz
tests: Use ldbsearch '--scope instead of '-s'
We should use long options in tests to make clear what we are trying to do. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'nsswitch')
-rwxr-xr-xnsswitch/tests/test_idmap_ad.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/nsswitch/tests/test_idmap_ad.sh b/nsswitch/tests/test_idmap_ad.sh
index d634b82ba14..8c641bdcf6d 100755
--- a/nsswitch/tests/test_idmap_ad.sh
+++ b/nsswitch/tests/test_idmap_ad.sh
@@ -35,13 +35,13 @@ if [ $? -ne 0 ] ; then
exit 1
fi
-BASE_DN=$($ldbsearch -H ldap://$DC_SERVER -b "" -s base defaultNamingContext | awk '/^defaultNamingContext/ {print $2}')
+BASE_DN=$($ldbsearch -H ldap://$DC_SERVER -b "" --scope=base defaultNamingContext | awk '/^defaultNamingContext/ {print $2}')
if [ $? -ne 0 ] ; then
echo "Could not find base DN" | subunit_fail_test "test_idmap_ad"
exit 1
fi
-TRUST_BASE_DN=$($ldbsearch -H ldap://$TRUST_SERVER -b "" -s base defaultNamingContext | awk '/^defaultNamingContext/ {print $2}')
+TRUST_BASE_DN=$($ldbsearch -H ldap://$TRUST_SERVER -b "" --scope=base defaultNamingContext | awk '/^defaultNamingContext/ {print $2}')
if [ $? -ne 0 ] ; then
echo "Could not find trusted base DN" | subunit_fail_test "test_idmap_ad"
exit 1