2 # Test id mapping with unknown SID and non-allocating idmap backend
10 wbinfo
="$VALGRIND $BINDIR/wbinfo"
14 . $
(dirname $0)/..
/..
/testprogs
/blackbox
/subunit.sh
16 testit
"wbinfo returns domain SID" $wbinfo -n "$DOMAIN/" ||
exit 1
17 DOMAIN_SID
=$
($wbinfo -n "$DOMAIN/" | cut
-f 1 -d " ")
18 echo "Domain $DOMAIN has SID $DOMAIN_SID"
20 # Find an unused uid and SID
25 $wbinfo -s $DOMAIN_SID-$RID
33 echo "Using non-existing SID $DOMAIN_SID-$RID to check no id allocation is done by the backend"
35 out
="$($wbinfo --sids-to-unix-ids=$DOMAIN_SID-$RID)"
36 echo "wbinfo returned: $out"
37 test "$out" = "$DOMAIN_SID-$RID -> unmapped"
39 testit
"wbinfo SID to xid returns unmapped for unknown SID" test $ret -eq 0 || failed
=$
(expr $failed + 1)