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

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

index ab7fa98425bfccd04b6b3bd75d04b295c247dfa7..f4f24983f30f82e2ac4aefeefa5f6f959ffe6e7e 100644 (file)
@@ -39,6 +39,12 @@ struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
        }
        TALLOC_FREE(cli->grent_state);
 
+       D_NOTICE("[%s (%u)] Winbind external command SETGRENT start.\n"
+                "winbind enum groups = %d\n",
+                cli->client_name,
+                (unsigned int)cli->pid,
+                lp_winbind_enum_groups());
+
        if (!lp_winbind_enum_groups()) {
                tevent_req_done(req);
                return tevent_req_post(req, ev);
@@ -56,5 +62,6 @@ struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
 NTSTATUS winbindd_setgrent_recv(struct tevent_req *req,
                                struct winbindd_response *presp)
 {
+       D_NOTICE("Winbind external command SETGRENT end.\n");
        return NT_STATUS_OK;
 }