summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-11-27 23:48:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:37 -0500
commit10573be26e6525dd622ecb94c00ed1d09a8ff2eb (patch)
tree3f351ec4fc12ba3aae137a1fffc740bf649adac3
parent740843e7fccd85b7adf258159543050fc1c12b99 (diff)
downloadsamba-10573be26e6525dd622ecb94c00ed1d09a8ff2eb.tar.gz
samba-10573be26e6525dd622ecb94c00ed1d09a8ff2eb.tar.bz2
samba-10573be26e6525dd622ecb94c00ed1d09a8ff2eb.zip
r19926: display user listing created by the test.
rafal (This used to be commit a97fb96203dab5de1d04f4c0917446e1d88f0168)
-rw-r--r--source4/torture/libnet/libnet_user.c8
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) ||