s3: Fix bug 7843: Expand the local SAMs aliases
authorJeremy Allison <jra@samba.org>
Sun, 5 Dec 2010 19:40:21 +0000 (20:40 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 6 Dec 2010 19:33:05 +0000 (20:33 +0100)
source3/winbindd/wb_gettoken.c

index 5755ffa07735915e8061591fd5aecff87f73388c..d1c8285b894f92c8436952ee08c768bc1cb03962 100644 (file)
@@ -107,7 +107,7 @@ static void wb_gettoken_gotgroups(struct tevent_req *subreq)
        /*
         * Expand our domain's aliases
         */
-       domain = find_our_domain();
+       domain = find_domain_from_sid_noinit(get_global_sam_sid());
        if (domain == NULL) {
                tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
                return;
@@ -138,7 +138,7 @@ static void wb_gettoken_gotlocalgroups(struct tevent_req *subreq)
                tevent_req_nterror(req, status);
                return;
        }
-       domain = find_our_domain();
+       domain = find_domain_from_sid_noinit(get_global_sam_sid());
        if (!wb_add_rids_to_sids(state, &state->num_sids, &state->sids,
                                 &domain->sid, num_rids, rids)) {
                tevent_req_nterror(req, NT_STATUS_NO_MEMORY);