diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_list_groups.c | 2 | ||||
-rw-r--r-- | source3/winbindd/winbindd_list_users.c | 2 | ||||
-rw-r--r-- | source3/winbindd/winbindd_misc.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_list_groups.c b/source3/winbindd/winbindd_list_groups.c index 3c9ff20b85..7331e9da1e 100644 --- a/source3/winbindd/winbindd_list_groups.c +++ b/source3/winbindd/winbindd_list_groups.c @@ -161,6 +161,7 @@ NTSTATUS winbindd_list_groups_recv(struct tevent_req *req, } len = 0; + response->data.num_entries = 0; for (i=0; i<state->num_domains; i++) { struct winbindd_list_groups_domstate *d = &state->domains[i]; @@ -171,6 +172,7 @@ NTSTATUS winbindd_list_groups_recv(struct tevent_req *req, True); len += strlen(name)+1; } + response->data.num_entries += d->groups.num_principals; } result = talloc_array(response, char, len+1); diff --git a/source3/winbindd/winbindd_list_users.c b/source3/winbindd/winbindd_list_users.c index 19232b7b11..124e71b039 100644 --- a/source3/winbindd/winbindd_list_users.c +++ b/source3/winbindd/winbindd_list_users.c @@ -161,6 +161,7 @@ NTSTATUS winbindd_list_users_recv(struct tevent_req *req, } len = 0; + response->data.num_entries = 0; for (i=0; i<state->num_domains; i++) { struct winbindd_list_users_domstate *d = &state->domains[i]; @@ -171,6 +172,7 @@ NTSTATUS winbindd_list_users_recv(struct tevent_req *req, True); len += strlen(name)+1; } + response->data.num_entries += d->users.num_userinfos; } result = talloc_array(response, char, len+1); diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c index ac8f1a7dfd..e6be28079d 100644 --- a/source3/winbindd/winbindd_misc.c +++ b/source3/winbindd/winbindd_misc.c @@ -130,6 +130,8 @@ void winbindd_list_trusted_domains(struct winbindd_cli_state *state) is_online ? "Online" : "Offline" ); } + state->response->data.num_entries = num_domains; + extra_data_len = strlen(extra_data); if (extra_data_len > 0) { |