Lines Matching refs:hnd
7 CacServerHandle *hnd = NULL;
12 hnd = cac_NewServerHandle(True);
14 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
16 cac_parse_cmd_line(argc, argv, hnd);
18 if(!cac_Connect(hnd, NULL)) {
19 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
28 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
29 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
38 if(!cac_SamGetDomainInfo(hnd, mem_ctx, &gdi)) {
39 fprintf(stderr, "Could not get domain info. Error: %s\n", nt_errstr(hnd->status));
47 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
49 cac_FreeHandle(hnd);