Lines Matching refs:hnd
6 CacServerHandle *hnd = NULL;
17 hnd = cac_NewServerHandle(True);
19 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
21 cac_parse_cmd_line(argc, argv, hnd);
23 if(!cac_Connect(hnd, NULL)) {
24 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
33 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
34 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
48 if(!cac_SamCreateUser(hnd, mem_ctx, &cdu)) {
49 fprintf(stderr, "Could not create user %s. Error: %s\n", cdu.in.name, nt_errstr(hnd->status));
63 if(!cac_SamOpenUser(hnd, mem_ctx, &ou)) {
64 fprintf(stderr, "Could not open user for deletion. Error: %s\n", nt_errstr(hnd->status));
74 if(!cac_SamDeleteUser(hnd, mem_ctx, user_hnd))
75 fprintf(stderr, "Could not delete user. Error: %s\n", nt_errstr(hnd->status));
81 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
82 cac_SamClose(hnd, mem_ctx, sod.out.sam);
87 cac_FreeHandle(hnd);