1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

s3:winbind: Improve logging in winbindd_setpwent.c

Test scenario:
$ getent passwd

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:44:54 +02:00 committed by Andreas Schneider
parent 5eaabe0404
commit 3c1d91cd5b

View File

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