summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-10-16 14:51:49 +0200
committerGünther Deschner <gd@samba.org>2009-10-16 14:54:57 +0200
commitc2966a0766998b732c190860879c001d6140863e (patch)
treebc7f0482817c6e8ddd48e882ef8503bcd2aaa6d8 /nsswitch
parent246597cb0d8d62c702841dfbb3fa257fc2da70da (diff)
downloadsamba-c2966a0766998b732c190860879c001d6140863e.tar.gz
samba-c2966a0766998b732c190860879c001d6140863e.tar.bz2
samba-c2966a0766998b732c190860879c001d6140863e.zip
s4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well.
Guenther
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/libwbclient/tests/wbclient.c5
1 files changed, 4 insertions, 1 deletions
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;