1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Fixed enumeration of large numbers of groups from a Samba DC.

Tidied up debug messages in lib/messages.c
Jeremy.
(This used to be commit dfb58f227609d6c8a255677b85ec853efa19f602)
This commit is contained in:
Jeremy Allison 2001-09-25 00:50:37 +00:00
parent be6023b2fb
commit 008ba27b28
2 changed files with 8 additions and 2 deletions

View File

@ -298,12 +298,16 @@ void message_dispatch(void)
size_t len;
struct dispatch_fns *dfn;
if (!received_signal) return;
if (!received_signal)
return;
DEBUG(10,("message_dispatch: received_signal = %d\n", received_signal));
received_signal = 0;
while (message_recv(&msg_type, &src, &buf, &len)) {
for (dfn = dispatch_fns; dfn; dfn = dfn->next) {
if (dfn->msg_type == msg_type) {
DEBUG(10,("message_dispatch: processing message of type %d.\n", msg_type));
dfn->fn(msg_type, src, buf, len);
}
}

View File

@ -900,6 +900,8 @@ static NTSTATUS get_group_alias_entries(TALLOC_CTX *ctx, DOMAIN_GRP **d_grp, DOM
DEBUG(10,("get_group_alias_entries: returning %d entries\n", *p_num_entries));
if (num_entries >= max_entries)
return STATUS_MORE_ENTRIES;
return NT_STATUS_OK;
}
@ -1007,7 +1009,7 @@ NTSTATUS _samr_enum_dom_aliases(pipes_struct *p, SAMR_Q_ENUM_DOM_ALIASES *q_u, S
/*safe_free(grp);*/
init_samr_r_enum_dom_aliases(r_u, q_u->start_idx, num_entries);
init_samr_r_enum_dom_aliases(r_u, q_u->start_idx + num_entries, num_entries);
DEBUG(5,("samr_enum_dom_aliases: %d\n", __LINE__));