From: Pavel Filipenský Date: Mon, 20 Jun 2022 13:05:21 +0000 (+0200) Subject: s3:winbind: Improve logging in wb_getpwsid.c X-Git-Tag: tevent-0.13.0~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35df8fd8261d3556a153fa5c7ef5a83998c1e94d;p=thirdparty%2Fsamba.git s3:winbind: Improve logging in wb_getpwsid.c Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- diff --git a/source3/winbindd/wb_getpwsid.c b/source3/winbindd/wb_getpwsid.c index 7f168bdda7a..7d04c39ad84 100644 --- a/source3/winbindd/wb_getpwsid.c +++ b/source3/winbindd/wb_getpwsid.c @@ -40,11 +40,13 @@ struct tevent_req *wb_getpwsid_send(TALLOC_CTX *mem_ctx, { struct tevent_req *req, *subreq; struct wb_getpwsid_state *state; + struct dom_sid_buf buf; req = tevent_req_create(mem_ctx, &state, struct wb_getpwsid_state); if (req == NULL) { return NULL; } + D_INFO("WB command getpwsid start.\nQuery user SID %s.\n", dom_sid_str_buf(user_sid, &buf)); sid_copy(&state->sid, user_sid); state->ev = ev; state->pw = pw; @@ -148,5 +150,7 @@ static void wb_getpwsid_queryuser_done(struct tevent_req *subreq) NTSTATUS wb_getpwsid_recv(struct tevent_req *req) { - return tevent_req_simple_recv_ntstatus(req); + NTSTATUS status = tevent_req_simple_recv_ntstatus(req); + D_INFO("WB command getpwsid end.\nReturn status %s.\n", nt_errstr(status)); + return status; }