Lines Matching refs:hnd
9 CacServerHandle *hnd = NULL;
23 hnd = cac_NewServerHandle(True);
25 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
27 cac_parse_cmd_line(argc, argv, hnd);
29 if(!cac_Connect(hnd, NULL)) {
30 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
38 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
39 fprintf(stderr, "Could not open LSA policy. Error: %s\n", nt_errstr(hnd->status));
50 while(cac_LsaEnumPrivileges(hnd, mem_ctx, &ep)) {
56 if(CAC_OP_FAILED(hnd->status)) {
57 fprintf(stderr, "Could not enumerate privileges. Error: %s\n", nt_errstr(hnd->status));
70 if(!cac_LsaEnumAccountRights(hnd, mem_ctx, &ar)) {
71 fprintf(stderr, "Could not enumerate privileges. Error: %s\n", nt_errstr(hnd->status));
101 if(!cac_LsaSetPrivileges(hnd, mem_ctx, &ap)) {
102 fprintf(stderr, "Could not set privileges. Error: %s\n", nt_errstr(hnd->status));
108 cac_FreeHandle(hnd);