summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_list_groups.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-03 14:16:19 +0200
committerVolker Lendecke <vl@samba.org>2010-04-19 14:27:18 +0200
commitcafba3d7a772385da36f7571690ba2ce2262cef5 (patch)
treee4a9e6a6fee0adc982d20ce5dc5f6dc78d89cd99 /source3/winbindd/winbindd_list_groups.c
parente80d0ecf8b716ddb1d5bdeeb641bfee10e35c345 (diff)
downloadsamba-cafba3d7a772385da36f7571690ba2ce2262cef5.tar.gz
samba-cafba3d7a772385da36f7571690ba2ce2262cef5.tar.bz2
samba-cafba3d7a772385da36f7571690ba2ce2262cef5.zip
winbindd: Fill in num_entries where available
The server implementation of WINBINDD_LIST_USERS, WINBINDD_LIST_GROUPS and WINBINDD_LIST_TRUSTDOM knows the number of entries returned. Bump up the version number so that a newer lib does not rely on something an older winbind does not do.
Diffstat (limited to 'source3/winbindd/winbindd_list_groups.c')
-rw-r--r--source3/winbindd/winbindd_list_groups.c2
1 files changed, 2 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);