• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/rpc_server/

Lines Matching defs:ref

99 static int init_dom_ref(DOM_R_REF *ref, char *dom_name, DOM_SID *dom_sid)
104 for (num = 0; num < ref->num_ref_doms_1; num++) {
106 rpcstr_pull(domname, ref->ref_dom[num].uni_dom_name.buffer, sizeof(domname), -1, 0);
111 num = ref->num_ref_doms_1;
119 ref->num_ref_doms_1 = num+1;
120 ref->ptr_ref_dom = 1;
121 ref->max_entries = MAX_REF_DOMAINS;
122 ref->num_ref_doms_2 = num+1;
124 ref->hdr_ref_dom[num].ptr_dom_sid = dom_sid != NULL ? 1 : 0;
126 init_unistr2(&ref->ref_dom[num].uni_dom_name, dom_name, UNI_FLAGS_NONE);
127 init_uni_hdr(&ref->hdr_ref_dom[num].hdr_dom_name, &ref->ref_dom[num].uni_dom_name);
129 init_dom_sid2(&ref->ref_dom[num].ref_dom, dom_sid );
138 static void init_lsa_rid2s(DOM_R_REF *ref, DOM_RID2 *rid2,
188 dom_idx = init_dom_ref(ref, dom_name, &sid);
208 DOM_R_REF *ref, uint32 num_entries,
212 r_l->dom_ref = ref;
226 static void init_lsa_trans_names(TALLOC_CTX *ctx, DOM_R_REF *ref, LSA_TRANS_NAME_ENUM *trn,
278 /* Store domain sid in ref array */
282 dom_idx = init_dom_ref(ref, dom_name, &find_sid);
306 DOM_R_REF *ref, LSA_TRANS_NAME_ENUM *names,
310 r_l->dom_ref = ref;
650 DOM_R_REF *ref = NULL;
660 ref = TALLOC_ZERO_P(p->mem_ctx, DOM_R_REF);
673 if (!ref || !names)
679 init_lsa_trans_names(p->mem_ctx, ref, names, num_entries, sid, &mapped_count);
686 init_reply_lookup_sids(r_u, ref, names, mapped_count);
700 DOM_R_REF *ref;
709 ref = TALLOC_ZERO_P(p->mem_ctx, DOM_R_REF);
723 if (!ref || !rids)
729 init_lsa_rid2s(ref, rids, num_entries, names, &mapped_count, p->endian);
736 init_reply_lookup_names(r_u, ref, num_entries, rids, mapped_count);