Lines Matching refs:hnd
6 CacServerHandle *hnd = NULL;
15 hnd = cac_NewServerHandle(True);
17 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
19 cac_parse_cmd_line(argc, argv, hnd);
21 if(!cac_Connect(hnd, NULL)) {
22 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
31 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
32 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
44 if(!cac_SamOpenUser(hnd, mem_ctx, &ou)) {
45 fprintf(stderr, "Could not open user. Error: %s\n", nt_errstr(hnd->status));
50 if(!cac_SamDisableUser(hnd, mem_ctx, ou.out.user_hnd)) {
51 fprintf(stderr, "Could not disable user: %s\n", nt_errstr(hnd->status));
55 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
57 cac_FreeHandle(hnd);