s3: Fix getent group if trusted domains are not reachable
authorVolker Lendecke <vl@samba.org>
Thu, 25 Aug 2011 18:13:09 +0000 (20:13 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 29 Aug 2011 17:29:37 +0000 (19:29 +0200)
source3/winbindd/wb_group_members.c

index e6efcabfad4e3c6c46b4df80c34d7d3c2f430cfb..8776a8c7dda9d82b5be234da90d1b21bb70368f1 100644 (file)
@@ -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);