From 40ee7863a558568c69ee990fb8405ab51febae34 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Wed, 28 Feb 2018 13:10:43 -0700 Subject: Add test for wbinfo name lookup This demonstrates that wbinfo -n / --name-to-sid returns information instead of failing the request. More specifically the query for INVALIDDOMAIN//user returns the user SID for the joined domain, instead of failing the request. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13312 Signed-off-by: Christof Schmitt Reviewed-by: Andreas Schneider (cherry picked from commit 552a00ec1f6795b9025298931a6cc50ebe552052) --- nsswitch/tests/test_wbinfo_name_lookup.sh | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 nsswitch/tests/test_wbinfo_name_lookup.sh (limited to 'nsswitch') diff --git a/nsswitch/tests/test_wbinfo_name_lookup.sh b/nsswitch/tests/test_wbinfo_name_lookup.sh new file mode 100755 index 00000000000..696e25b3a2a --- /dev/null +++ b/nsswitch/tests/test_wbinfo_name_lookup.sh @@ -0,0 +1,40 @@ +#!/bin/sh +# Blackbox test for wbinfo name lookup +if [ $# -lt 2 ]; then +cat <