From 71dcb84e61443df3f149693486fde40315d7503d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 25 Aug 2011 20:13:09 +0200 Subject: [PATCH] s3: Fix getent group if trusted domains are not reachable --- source3/winbindd/wb_group_members.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/wb_group_members.c b/source3/winbindd/wb_group_members.c index e6efcab..8776a8c 100644 --- a/source3/winbindd/wb_group_members.c +++ b/source3/winbindd/wb_group_members.c @@ -209,8 +209,13 @@ static void wb_groups_members_done(struct tevent_req *subreq) * and just continue if an error occured. */ - if (tevent_req_nterror(req, status)) { - return; + if (!NT_STATUS_IS_OK(status)) { + if (!NT_STATUS_EQUAL( + status, NT_STATUS_TRUSTED_DOMAIN_FAILURE)) { + tevent_req_nterror(req, status); + return; + } + num_members = 0; } num_all_members = talloc_array_length(state->all_members); -- 1.7.4.1