Lines Matching refs:hnd
8 CacServerHandle *hnd = NULL;
18 hnd = cac_NewServerHandle(True);
21 fscanf(stdin, "%s", hnd->server);
23 if(!cac_Connect(hnd, NULL)) {
24 fprintf(stderr, "Could not connect to server.\n Error: %s.\n errno: %s\n", nt_errstr(hnd->status), strerror(errno));
25 cac_FreeHandle(hnd);
39 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
40 fprintf(stderr, "Could not open policy handle.\n Error: %s\n", nt_errstr(hnd->status));
41 cac_FreeHandle(hnd);
56 while(cac_LsaEnumSids(hnd, mem_ctx, &esop)) {
72 if(!cac_LsaGetNamesFromSids(hnd, mem_ctx, &gnop)) {
73 fprintf(stderr, "Could not resolve names.\n Error: %s\n", nt_errstr(hnd->status));
88 if(!cac_LsaClosePolicy(hnd, mem_ctx, pol)) {
89 fprintf(stderr, "Could not close policy handle.\n Error: %s\n", nt_errstr(hnd->status));
92 cac_FreeHandle(hnd);