From 10573be26e6525dd622ecb94c00ed1d09a8ff2eb Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Mon, 27 Nov 2006 23:48:19 +0000 Subject: r19926: display user listing created by the test. rafal (This used to be commit a97fb96203dab5de1d04f4c0917446e1d88f0168) --- source4/torture/libnet/libnet_user.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/torture/libnet') diff --git a/source4/torture/libnet/libnet_user.c b/source4/torture/libnet/libnet_user.c index 3d507090fd..98d1d2a1b2 100644 --- a/source4/torture/libnet/libnet_user.c +++ b/source4/torture/libnet/libnet_user.c @@ -685,6 +685,7 @@ BOOL torture_userlist(struct torture_context *torture) struct libnet_context *ctx; struct lsa_String domain_name; struct libnet_UserList req; + int i; binding = torture_setting_string(torture, "binding", NULL); @@ -695,6 +696,8 @@ BOOL torture_userlist(struct torture_context *torture) mem_ctx = talloc_init("torture user list"); ZERO_STRUCT(req); + + printf("listing user accounts:\n"); do { @@ -704,6 +707,11 @@ BOOL torture_userlist(struct torture_context *torture) status = libnet_UserList(ctx, mem_ctx, &req); + for (i = 0; i < req.out.count; i++) { + printf("\tuser: %s, sid=%s\n", + req.out.users[i].username, req.out.users[i].sid); + } + } while (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)); if (!(NT_STATUS_IS_OK(status) || -- cgit