nsswitch: Add a test looking up the user using the upn
[samba.git] / nsswitch / tests / test_wbinfo_name_lookup.sh
index 696e25b3a2a83b7205991187b0947f3ef1343c5a..a8fd5ec4d9998faf2772f98a7ca469e2bd39714d 100755 (executable)
@@ -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 || \