Lines Matching defs:sgr
12 struct SamGetRidsFromNames sgr;
86 ZERO_STRUCT(sgr);
88 sgr.in.dom_hnd = sod.out.dom_hnd;
91 scanf("%d", &sgr.in.num_names);
93 sgr.in.names = talloc_array(mem_ctx, char *, sgr.in.num_names);
95 for(i = 0; i < sgr.in.num_names; i++) {
99 sgr.in.names[i] = talloc_strdup(mem_ctx, input);
102 if(!cac_SamGetRidsFromNames(hnd, mem_ctx, &sgr)) {
107 printf("Found %d RIDs:\n", sgr.out.num_rids);
109 for(i = 0; i < sgr.out.num_rids; i++) {
110 printf(" Name: %s ", sgr.out.map[i].name);
112 if(sgr.out.map[i].found) {
113 printf("RID: 0x%x\n", sgr.out.map[i].rid);