summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-01-14 08:25:52 +0100
committerKai Blin <kai@samba.org>2009-01-14 08:25:52 +0100
commit9874c9eff77573b59d783698cc0c69e0985a3945 (patch)
treeb333e8de91edf9c28948085401a9f1107d2f188e
parent96b1b8b94af56616a2d31de039ef0a91d4ff3088 (diff)
downloadsamba-9874c9eff77573b59d783698cc0c69e0985a3945.tar.gz
samba-9874c9eff77573b59d783698cc0c69e0985a3945.tar.bz2
samba-9874c9eff77573b59d783698cc0c69e0985a3945.zip
s4 torture: Fix the wbinfo blackbox tests
-rwxr-xr-xnsswitch/tests/test_wbinfo.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/nsswitch/tests/test_wbinfo.sh b/nsswitch/tests/test_wbinfo.sh
index 8fa0db812d..88bffc57b1 100755
--- a/nsswitch/tests/test_wbinfo.sh
+++ b/nsswitch/tests/test_wbinfo.sh
@@ -51,12 +51,19 @@ knownfail() {
return $status
}
-
+# List users
testit "wbinfo -u against $TARGET" $wbinfo -u || failed=`expr $failed + 1`
+# List groups
# Does not work yet
knownfail "wbinfo -g against $TARGET" $wbinfo -g || failed=`expr $failed + 1`
-knownfail "wbinfo -N against $TARGET" $wbinfo -N || failed=`expr $failed + 1`
-knownfail "wbinfo -I against $TARGET" $wbinfo -I || failed=`expr $failed + 1`
+# Convert netbios name to IP
+# Does not work yet
+knownfail "wbinfo -N against $TARGET" $wbinfo -N $NETBIOSNAME || failed=`expr $failed + 1`
+# Convert IP to netbios name
+# Does not work yet
+knownfail "wbinfo -I against $TARGET" $wbinfo -I $SERVER_IP || failed=`expr $failed + 1`
+
+# Convert name to SID
testit "wbinfo -n against $TARGET" $wbinfo -n "$DOMAIN/$USERNAME" || failed=`expr $failed + 1`
admin_sid=`$wbinfo -n "$DOMAIN/$USERNAME" | cut -d " " -f1`
echo "$DOMAIN/$USERNAME resolved to $admin_sid"
@@ -100,7 +107,7 @@ else
echo "success: wbinfo -U check for sane mapping"
fi
-admin_uid=`$wbinfo -U $admin_sid`
+admin_uid=`$wbinfo -S $admin_sid`
testit "wbinfo -G against $TARGET" $wbinfo -G 30000 || failed=`expr $failed + 1`
@@ -163,8 +170,9 @@ knownfail "wbinfo -D against $TARGET" $wbinfo -D $DOMAIN || failed=`expr $failed
testit "wbinfo -i against $TARGET" $wbinfo -i "$DOMAIN/$USERNAME" || failed=`expr $failed + 1`
+testit "wbinfo --uid-info against $TARGET" $wbinfo --uid-info $admin_uid
+
# this does not work
-knownfail "wbinfo --uid-info against $TARGET" $wbinfo --uid-info $admin_sid
knownfail "wbinfo --group-info against $TARGET" $wbinfo --group-info "S-1-22-2-0"
knownfail "wbinfo -r against $TARGET" $wbinfo -r "$DOMAIN/$USERNAME"