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:
parent
0aceca6a94
commit
4fa811ec7b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user