Lines Matching defs:cu
27 struct SamCreateUser cu;
55 ZERO_STRUCT(cu);
56 cu.in.dom_hnd = dom_hnd;
57 cu.in.acb_mask = ACB_NORMAL;
61 cu.in.name = talloc_strdup(mem_ctx, tmp);
63 if(!cac_SamCreateUser(hnd, mem_ctx, &cu)) {
67 user_menu(hnd, mem_ctx, dom_hnd, cu.out.user_hnd);
97 ZERO_STRUCT(cu);
98 cu.in.dom_hnd = dom_hnd;
99 cu.in.acb_mask = ACB_WSTRUST;
106 cu.in.name = talloc_asprintf(mem_ctx, "%s$", tmp);
108 cu.in.name = talloc_strdup(mem_ctx, tmp);
110 strlower_m(cu.in.name);
112 printf("Creating account: %s\n", cu.in.name);
114 if(!cac_SamCreateUser(hnd, mem_ctx, &cu)) {
118 user_menu(hnd, mem_ctx, dom_hnd, cu.out.user_hnd);