]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Improve logging in wb_query_group_list.c
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 24 Jun 2022 13:41:21 +0000 (15:41 +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_query_group_list.c

index 703d3316376481c54db436e591087c7da56adbe1..4c6f1ee778d6fd18f8941ab2181066e61dc172d9 100644 (file)
@@ -42,6 +42,7 @@ struct tevent_req *wb_query_group_list_send(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
+       D_INFO("WB command group_list start.\nQuery domain %s\n", domain->name);
        subreq = dcerpc_wbint_QueryGroupList_send(state, ev,
                                                  dom_child_handle(domain),
                                                  &state->groups);
@@ -68,9 +69,6 @@ static void wb_query_group_list_done(struct tevent_req *subreq)
                return;
        }
 
-       DEBUG(10, ("dcerpc_wbint_QueryGroupList returned %d groups\n",
-                  state->groups.num_principals));
-
        tevent_req_done(req);
 }
 
@@ -83,11 +81,13 @@ NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
        NTSTATUS status;
 
        if (tevent_req_is_nterror(req, &status)) {
+               D_WARNING("Failed with: %s\n", nt_errstr(status));
                return status;
        }
 
        *num_groups = state->groups.num_principals;
        *groups = talloc_move(mem_ctx, &state->groups.principals);
 
+       D_INFO("WB command group_list end.\nReturning %d group(s).\n", *num_groups);
        return NT_STATUS_OK;
 }