From 552a00ec1f6795b9025298931a6cc50ebe552052 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Wed, 28 Feb 2018 13:10:43 -0700 Subject: [PATCH] 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 --- nsswitch/tests/test_wbinfo_name_lookup.sh | 40 +++++++++++++++++++++++ selftest/knownfail | 2 ++ source3/selftest/tests.py | 4 +++ 3 files changed, 46 insertions(+) create mode 100755 nsswitch/tests/test_wbinfo_name_lookup.sh 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 <