From 3c1d91cd5b1afb89a0b10a3fbea55aab80386f8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Filipensk=C3=BD?= Date: Fri, 24 Jun 2022 10:44:54 +0200 Subject: [PATCH] s3:winbind: Improve logging in winbindd_setpwent.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test scenario: $ getent passwd Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- source3/winbindd/winbindd_setpwent.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/winbindd/winbindd_setpwent.c b/source3/winbindd/winbindd_setpwent.c index 4591731923a..3c98e5adb4d 100644 --- a/source3/winbindd/winbindd_setpwent.c +++ b/source3/winbindd/winbindd_setpwent.c @@ -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; } -- 2.47.3