]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Improve logging in winbindd_setpwent.c
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 24 Jun 2022 08:44:54 +0000 (10:44 +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_setpwent.c

index 4591731923a6fb8e1402cee58f76d553f982ebdb..3c98e5adb4d25728022bdad7d54b560c92485d06 100644 (file)
@@ -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;
 }