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.
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)) {
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;