summaryrefslogtreecommitdiff
path: root/nsswitch/tests/test_wbinfo_name_lookup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch/tests/test_wbinfo_name_lookup.sh')
-rwxr-xr-xnsswitch/tests/test_wbinfo_name_lookup.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/nsswitch/tests/test_wbinfo_name_lookup.sh b/nsswitch/tests/test_wbinfo_name_lookup.sh
index 696e25b3a2a..a8fd5ec4d99 100755
--- a/nsswitch/tests/test_wbinfo_name_lookup.sh
+++ b/nsswitch/tests/test_wbinfo_name_lookup.sh
@@ -8,8 +8,9 @@ exit 1;
fi
DOMAIN=$1
-DC_USERNAME=$2
-shift 2
+REALM=$2
+DC_USERNAME=$3
+shift 3
failed=0
sambabindir="$BINDIR"
@@ -22,6 +23,10 @@ testit "name-to-sid.single-separator" \
$wbinfo -n $DOMAIN/$DC_USERNAME || \
failed=$(expr $failed + 1)
+testit "name-to-sid.upn" \
+ $wbinfo -n $DC_USERNAME@$REALM || \
+ failed=$(expr $failed + 1)
+
# Two separator characters should fail
testit_expect_failure "name-to-sid.double-separator" \
$wbinfo -n $DOMAIN//$DC_USERNAME || \