diff options
author | Kai Blin <kai@samba.org> | 2010-01-13 15:59:57 +0100 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2010-01-14 15:18:34 +0100 |
commit | 932d4a874bb79ad76b95b43491b223d766ab4196 (patch) | |
tree | 1f51d717b044630b7235632ddbfb19fbadafe0c1 /source3/winbindd | |
parent | a4f21d5dc886b708d401a32d2208c316b537b07f (diff) | |
download | samba-932d4a874bb79ad76b95b43491b223d766ab4196.tar.gz samba-932d4a874bb79ad76b95b43491b223d766ab4196.tar.bz2 samba-932d4a874bb79ad76b95b43491b223d766ab4196.zip |
s3 winbindd: Return number of groups in data.num_entries for WINBINDD_LIST_GROUPS
This allows to test if there's something wrong with the group list in
extra_data or if there's simply no groups in the database.
Volker, please check.
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_list_groups.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_list_groups.c b/source3/winbindd/winbindd_list_groups.c index 3795045787..a621762edb 100644 --- a/source3/winbindd/winbindd_list_groups.c +++ b/source3/winbindd/winbindd_list_groups.c @@ -153,7 +153,7 @@ NTSTATUS winbindd_list_groups_recv(struct tevent_req *req, NTSTATUS status; char *result; int i; - uint32_t j; + uint32_t j, num_entries = 0; size_t len; if (tevent_req_is_nterror(req, &status)) { @@ -193,10 +193,12 @@ NTSTATUS winbindd_list_groups_recv(struct tevent_req *req, len += this_len; result[len] = ','; len += 1; + num_entries++; } } result[len-1] = '\0'; + response->data.num_entries = num_entries; response->extra_data.data = result; response->length += len; |