]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Improve logging in winbindd_endpwent.c
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 24 Jun 2022 08:47:10 +0000 (10:47 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Jul 2022 14:25:38 +0000 (14:25 +0000)
Test scenario:
$ getent passwd

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/winbindd_endpwent.c

index 8f785fb3a8ae17d57b79301aebedf2d1574cc5e8..a7c14cbc76377126f4f5e0a20d6a76b02beb4466 100644 (file)
@@ -37,6 +37,11 @@ struct tevent_req *winbindd_endpwent_send(TALLOC_CTX *mem_ctx,
        if (req == NULL) {
                return NULL;
        }
+
+       D_NOTICE("[%s (%u)] Winbind external command ENDPWENT start.\n",
+                cli->client_name,
+                (unsigned int)cli->pid);
+
        TALLOC_FREE(cli->pwent_state);
        tevent_req_done(req);
        return tevent_req_post(req, ev);
@@ -45,5 +50,6 @@ struct tevent_req *winbindd_endpwent_send(TALLOC_CTX *mem_ctx,
 NTSTATUS winbindd_endpwent_recv(struct tevent_req *req,
                                struct winbindd_response *presp)
 {
+       D_NOTICE("Winbind external command ENDPWENT end.\n");
        return NT_STATUS_OK;
 }