]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Improve logging in wb_dsgetdcname.c
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 24 Jun 2022 13:05:09 +0000 (15:05 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 15 Jul 2022 14:25:38 +0000 (14:25 +0000)
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/wb_dsgetdcname.c

index 95a75a9cbc54fee123c241c0890cc881e7d2ac32..ab9be5b5a1ba9dd8927e26272f4cd36ffda4c59f 100644 (file)
@@ -47,6 +47,10 @@ struct tevent_req *wb_dsgetdcname_send(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
+       D_INFO("WB command dsgetdcname start.\n"
+              "Search domain name %s and site name %s.\n",
+              domain_name,
+              site_name);
        if (strequal(domain_name, "BUILTIN")) {
                /*
                 * This makes no sense
@@ -119,7 +123,9 @@ NTSTATUS wb_dsgetdcname_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
                req, struct wb_dsgetdcname_state);
        NTSTATUS status;
 
+       D_INFO("WB command dsgetdcname end.\n");
        if (tevent_req_is_nterror(req, &status)) {
+               D_WARNING("Failed with %s.\n", nt_errstr(status));
                return status;
        }
        *pdcinfo = talloc_move(mem_ctx, &state->dcinfo);