Lines Matching defs:mem_ctx
7 TALLOC_CTX *mem_ctx = NULL;
15 mem_ctx = talloc_init("cac_adduser");
33 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
45 cdu.in.name = talloc_strdup(mem_ctx, tmp);
48 if(!cac_SamCreateUser(hnd, mem_ctx, &cdu)) {
61 ou.in.name = talloc_strdup(mem_ctx, cdu.in.name);
63 if(!cac_SamOpenUser(hnd, mem_ctx, &ou)) {
74 if(!cac_SamDeleteUser(hnd, mem_ctx, user_hnd))
81 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
82 cac_SamClose(hnd, mem_ctx, sod.out.sam);
85 talloc_destroy(mem_ctx);