1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:winbind: Improve logging in winbindd_setgrent.c

Test scenario:
id ADDOMAIN/alice

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Filipenský 2022-06-24 10:43:33 +02:00 committed by Andreas Schneider
parent 53d9cf7692
commit 5eaabe0404

View File

@ -39,6 +39,12 @@ struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
}
TALLOC_FREE(cli->grent_state);
D_NOTICE("[%s (%u)] Winbind external command SETGRENT start.\n"
"winbind enum groups = %d\n",
cli->client_name,
(unsigned int)cli->pid,
lp_winbind_enum_groups());
if (!lp_winbind_enum_groups()) {
tevent_req_done(req);
return tevent_req_post(req, ev);
@ -56,5 +62,6 @@ struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
NTSTATUS winbindd_setgrent_recv(struct tevent_req *req,
struct winbindd_response *presp)
{
D_NOTICE("Winbind external command SETGRENT end.\n");
return NT_STATUS_OK;
}