winbind.idl: rename wbint_TransID.type to wbint_TransID.type_hint
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Sep 2020 14:01:04 +0000 (16:01 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Oct 2020 03:25:35 +0000 (03:25 +0000)
This makes it clear that it's a hint from the parent to the
child.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
librpc/idl/winbind.idl
source3/winbindd/wb_sids2xids.c
source3/winbindd/winbindd_dual_srv.c

index 258dd284ad599bfebc5907a388aefdf1a03eb993..a2bc81a9333deff92b8a535ff0ad13b4973e5650 100644 (file)
@@ -40,7 +40,7 @@ interface winbind
        );
 
     typedef struct {
-       id_type type;
+       id_type type_hint;
        uint32 domain_index;
        uint32 rid;
        unixid xid;
index e6698f947895f5b8d1bfdd68c1155aae79a84e3b..ff2135b4b50b7315cb8243797ccb11004e202264 100644 (file)
@@ -222,7 +222,7 @@ static void wb_sids2xids_lookupsids_done(struct tevent_req *subreq)
 
                sid_copy(&dom_sid, sid);
                sid_split_rid(&dom_sid, &t->rid);
-               t->type = lsa_SidType_to_id_type(n->sid_type);
+               t->type_hint = lsa_SidType_to_id_type(n->sid_type);
                domain_index = init_lsa_ref_domain_list(
                        state, &state->idmap_doms, domain_name, &dom_sid);
                if (domain_index == -1) {
@@ -232,7 +232,7 @@ static void wb_sids2xids_lookupsids_done(struct tevent_req *subreq)
                t->domain_index = domain_index;
 
                t->xid.id = UINT32_MAX;
-               t->xid.type = t->type;
+               t->xid.type = ID_TYPE_NOT_SPECIFIED;
        }
 
        TALLOC_FREE(names);
@@ -337,7 +337,6 @@ static void wb_sids2xids_done(struct tevent_req *subreq)
 
        for (i=0; i<dst->num_ids; i++) {
                if (dst->ids[i].domain_index == state->dom_index) {
-                       dst->ids[i].type = src->ids[src_idx].type;
                        dst->ids[i].xid  = src->ids[src_idx].xid;
                        src_idx += 1;
                }
index b8694db3db9ca0fccee177e47bd7cee73959cc73..6348f9caeed46786ccd1777418f1ec3ad6a95f45 100644 (file)
@@ -200,7 +200,7 @@ NTSTATUS _wbint_Sids2UnixIDs(struct pipes_struct *p,
 
                sid_compose(m->sid, d->sid, ids[i].rid);
                m->status = ID_UNKNOWN;
-               m->xid = (struct unixid) { .type = ids[i].type };
+               m->xid = (struct unixid) { .type = ids[i].type_hint };
        }
 
        status = dom->methods->sids_to_unixids(dom, id_map_ptrs);