From: Pavel Filipenský Date: Fri, 24 Jun 2022 08:44:54 +0000 (+0200) Subject: s3:winbind: Improve logging in winbindd_setpwent.c X-Git-Tag: tevent-0.13.0~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c1d91cd5b1afb89a0b10a3fbea55aab80386f8c;p=thirdparty%2Fsamba.git s3:winbind: Improve logging in winbindd_setpwent.c Test scenario: $ getent passwd Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- 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; }