From c2966a0766998b732c190860879c001d6140863e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 16 Oct 2009 14:51:49 +0200 Subject: s4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well. Guenther --- nsswitch/libwbclient/tests/wbclient.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c index 5b3d6ff54e..5a55a43ceb 100644 --- a/nsswitch/libwbclient/tests/wbclient.c +++ b/nsswitch/libwbclient/tests/wbclient.c @@ -169,10 +169,11 @@ static bool test_wbc_users(struct torture_context *tctx) for (i=0; i < MIN(num_users,100); i++) { - struct wbcDomainSid sid; + struct wbcDomainSid sid, *sids; enum wbcSidType name_type; char *domain; char *name; + uint32_t num_sids; torture_assert_wbc_ok(tctx, wbcLookupName(domain_name, users[i], &sid, &name_type), "wbcLookupName failed"); @@ -184,6 +185,8 @@ static bool test_wbc_users(struct torture_context *tctx) "wbcLookupSid expected WBC_SID_NAME_USER"); torture_assert(tctx, name, "wbcLookupSid returned no name"); + torture_assert_wbc_ok(tctx, wbcLookupUserSids(&sid, true, &num_sids, &sids), + "wbcLookupUserSids failed"); } return true; -- cgit