• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libmsrpc/test/lsa/

Lines Matching refs:hnd

24    CacServerHandle *hnd = NULL;
32 hnd = cac_NewServerHandle(False);
35 hnd->username = SMB_MALLOC_ARRAY(char, sizeof(fstring));
36 hnd->domain = SMB_MALLOC_ARRAY(char, sizeof(fstring));
37 hnd->netbios_name = SMB_MALLOC_ARRAY(char, sizeof(fstring));
38 hnd->password = SMB_MALLOC_ARRAY(char, sizeof(fstring));
40 hnd->server = SMB_MALLOC_ARRAY(char, sizeof(fstring));
44 fscanf(stdin, "%s", hnd->server);
48 if(!cac_Connect(hnd, NULL)) {
49 fprintf(stderr, "Could not connect to server.\n Error: %s\n errno %s\n", nt_errstr(hnd->status), strerror(errno));
50 cac_FreeHandle(hnd);
63 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
64 fprintf(stderr, "Could not open policy handle.\n Error: %s\n", nt_errstr(hnd->status));
65 cac_FreeHandle(hnd);
78 while(cac_LsaEnumTrustedDomains(hnd, mem_ctx, &etd)) {
107 if(!cac_LsaQueryTrustedDomainInfo(hnd, mem_ctx, &qtd)) {
108 fprintf(stderr, " could not query trusted domain info.\n Error %s\n", nt_errstr(hnd->status));
120 if(!cac_LsaQueryTrustedDomainInfo(hnd, mem_ctx, &qtd)) {
121 fprintf(stderr, " could not query trusted domain info.\n Error %s\n", nt_errstr(hnd->status));
128 if(CAC_OP_FAILED(hnd->status)) {
129 fprintf(stderr, " Could not enum sids.\n Error: %s\n", nt_errstr(hnd->status));
137 if(CAC_OP_FAILED(hnd->status)) {
138 fprintf(stderr, "Error while enumerating trusted domains.\n Error: %s\n", nt_errstr(hnd->status));
143 if(!cac_LsaClosePolicy(hnd, mem_ctx, lsa_pol)) {
144 fprintf(stderr, "Could not close policy handle.\n Error: %s\n", nt_errstr(hnd->status));
147 cac_FreeHandle(hnd);