Lines Matching refs:hnd
7 CacServerHandle *hnd = NULL;
21 hnd = cac_NewServerHandle(True);
23 cac_parse_cmd_line(argc, argv, hnd);
25 if(!cac_Connect(hnd, NULL)) {
26 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
35 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
36 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
63 if(!cac_SamGetNamesFromRids(hnd, mem_ctx, &sgn)) {
64 fprintf(stderr, "could not lookup names. Error: %s\n", nt_errstr(hnd->status));
102 if(!cac_SamGetRidsFromNames(hnd, mem_ctx, &sgr)) {
103 fprintf(stderr, "Could not lookup names. Error: %s\n", nt_errstr(hnd->status));
130 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
131 cac_SamClose(hnd, mem_ctx, sod.out.sam);
135 cac_FreeHandle(hnd);