diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-05-12 17:10:14 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-06-04 03:22:26 +0200 |
commit | 6add082461358c01d255dbf87e4e48ba43f38218 (patch) | |
tree | f87df5812163b5b1b73cb3834970fb85dd1b2a0e /nsswitch | |
parent | 4688cf77c425eb52f9765a94b0479a2327d2e354 (diff) | |
download | samba-6add082461358c01d255dbf87e4e48ba43f38218.tar.gz samba-6add082461358c01d255dbf87e4e48ba43f38218.tar.xz samba-6add082461358c01d255dbf87e4e48ba43f38218.zip |
selftest: Make test_wbinfo.sh work with s3-winbindd
Change-Id: I41ed850b6424eac3fb8b6603d5b87c66bb77dd51
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'nsswitch')
-rwxr-xr-x | nsswitch/tests/test_wbinfo.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/nsswitch/tests/test_wbinfo.sh b/nsswitch/tests/test_wbinfo.sh index 461d7801c2f..c9758b8a4ee 100755 --- a/nsswitch/tests/test_wbinfo.sh +++ b/nsswitch/tests/test_wbinfo.sh @@ -57,10 +57,10 @@ testit "wbinfo -u against $TARGET" $wbinfo -u || failed=`expr $failed + 1` testit "wbinfo -g against $TARGET" $wbinfo -g || 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` +testit "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` +testit "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` @@ -151,8 +151,8 @@ testfail "wbinfo -Y against $TARGET using invalid SID" $wbinfo -Y "S-1-22-1-3000 testit "wbinfo -t against $TARGET" $wbinfo -t || failed=`expr $failed + 1` #didn't really work anyway -knownfail "wbinfo --trusted-domains against $TARGET" $wbinfo --trusted-domains || failed=`expr $failed + 1` -knownfail "wbinfo --all-domains against $TARGET" $wbinfo --all-domains || failed=`expr $failed + 1` +testit "wbinfo --trusted-domains against $TARGET" $wbinfo --trusted-domains || failed=`expr $failed + 1` +testit "wbinfo --all-domains against $TARGET" $wbinfo --all-domains || failed=`expr $failed + 1` testit "wbinfo --own-domain against $TARGET" $wbinfo --own-domain || failed=`expr $failed + 1` @@ -177,7 +177,7 @@ testit "wbinfo -i against $TARGET" $wbinfo -i "$DOMAIN/$USERNAME" || failed=`exp testit "wbinfo --uid-info against $TARGET" $wbinfo --uid-info $admin_uid || failed=`expr $failed + 1` echo "test: wbinfo --group-info against $TARGET" -rawgid=`$wbinfo --group-info "Domain admins" | sed 's/.*:\([0-9][0-9]*\):/\1/'` +gid=`$wbinfo --group-info "$DOMAIN/Domain admins" | cut -d: -f3` if test x$? = x0; then echo "success: wbinfo --group-info against $TARGET" else @@ -187,7 +187,6 @@ fi testfail "wbinfo --group-info against $TARGET with $USERNAME" $wbinfo --group-info $USERNAME && failed=`expr $failed + 1` -gid=`echo $rawgid | sed 's/.*:\([0-9][0-9]*\):/\1/'` testit "wbinfo --gid-info against $TARGET" $wbinfo --gid-info $gid || failed=`expr $failed + 1` testit "wbinfo -r against $TARGET" $wbinfo -r "$DOMAIN/$USERNAME" || failed=`expr $failed + 1` |