diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/libnet/libnet_user.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) || |