1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

nsswitch: Lookup the domain in tests with the wb seperator

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2018-05-07 13:23:42 +02:00 committed by Andreas Schneider
parent 0aceca6a94
commit 4fa811ec7b
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ failed=0
. `dirname $0`/../../testprogs/blackbox/subunit.sh
DOMAIN_SID=$($wbinfo -n "@$DOMAIN" | cut -f 1 -d " ")
DOMAIN_SID=$($wbinfo -n "$DOMAIN/" | cut -f 1 -d " ")
if [ $? -ne 0 ] ; then
echo "Could not find domain SID" | subunit_fail_test "test_idmap_ad"
exit 1

View File

@ -13,8 +13,8 @@ failed=0
. `dirname $0`/../../testprogs/blackbox/subunit.sh
testit "wbinfo returns domain SID" $wbinfo -n "@$DOMAIN" || exit 1
DOMAIN_SID=$($wbinfo -n "@$DOMAIN" | cut -f 1 -d " ")
testit "wbinfo returns domain SID" $wbinfo -n "$DOMAIN/" || exit 1
DOMAIN_SID=$($wbinfo -n "$DOMAIN/" | cut -f 1 -d " ")
echo "Domain $DOMAIN has SID $DOMAIN_SID"
# Find an unused uid and SID

View File

@ -16,7 +16,7 @@ failed=0
. `dirname $0`/../../testprogs/blackbox/subunit.sh
DOMAIN_SID=$($wbinfo -n "@$DOMAIN" | cut -f 1 -d " ")
DOMAIN_SID=$($wbinfo -n "$DOMAIN/" | cut -f 1 -d " ")
if [ $? -ne 0 ] ; then
echo "Could not find domain SID" | subunit_fail_test "test_idmap_rid"
exit 1