1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

selftest: test wbinfo -n and --gid-info with "NT Authority"

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12164

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Ralph Boehme 2018-11-27 20:32:09 +01:00
parent a92f0ccce6
commit c46b6b111e
2 changed files with 20 additions and 0 deletions

View File

@ -125,6 +125,24 @@ else
echo "success: wbinfo -n check for sane mapping"
fi
echo "test: wbinfo -n NT Authority/Authenticated Users"
$wbinfo -n "NT Authority/Authenticated Users"
if [ $? -ne 0 ] ; then
echo "failure: wbinfo -n NT Authority/Authenticated Users"
failed=`expr $failed + 1`
else
echo "success: wbinfo -n NT Authority/Authenticated Users"
fi
echo "test: wbinfo --group-info NT Authority/Authenticated Users"
$wbinfo --group-info "NT Authority/Authenticated Users"
if [ $? -ne 0 ] ; then
echo "failure: wbinfo --group-info NT Authority/Authenticated Users"
failed=`expr $failed + 1`
else
echo "success: wbinfo --group-info NT Authority/Authenticated Users"
fi
testit "wbinfo -U against $TARGET" $wbinfo -U 30000 || failed=`expr $failed + 1`
echo "test: wbinfo -U check for sane mapping"

View File

@ -0,0 +1,2 @@
^samba.blackbox.wbinfo\(.*\).wbinfo -n NT Authority/Authenticated Users\(.*\)
^samba.blackbox.wbinfo\(.*\).wbinfo --group-info NT Authority/Authenticated Users\(.*\)