Lines Matching refs:hnd
9 CacServerHandle *hnd = NULL;
26 hnd = cac_NewServerHandle(True);
28 cac_parse_cmd_line(argc, argv, hnd);
36 ctx->debug = hnd->debug;
43 cac_SetSmbcContext(hnd, ctx);
46 if(!cac_Connect(hnd, NULL)) {
52 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop))
53 printf("Could not open LSA policy. Error: %s\n", nt_errstr(hnd->status));
59 if(!cac_RegConnect(hnd, mem_ctx, &rc))
60 printf("Could not connect to registry. Error: %s\n", nt_errstr(hnd->status));
66 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod))
67 printf("Could not open domain SAM. Error: %s\n", nt_errstr(hnd->status));
72 cac_LsaClosePolicy(hnd, mem_ctx, lop.out.pol);
75 cac_RegClose(hnd, mem_ctx, rc.out.key);
78 cac_SamClose(hnd, mem_ctx, sod.out.sam);
81 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
83 cac_FreeHandle(hnd);