• 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

9 void fill_conn_info(CacServerHandle *hnd) {
27 hnd->domain = SMB_STRDUP(domain);
28 hnd->username = SMB_STRDUP(username);
29 hnd->password = SMB_STRDUP(password);
30 hnd->server = SMB_STRDUP(server);
59 CacServerHandle *hnd = NULL;
72 hnd = cac_NewServerHandle(False);
74 fill_conn_info(hnd);
79 if(!cac_Connect(hnd, NULL)) {
80 fprintf(stderr, "Could not connect to server.\n Error %s.\n", nt_errstr(hnd->status));
81 cac_FreeHandle(hnd);
85 fprintf(stdout, "Connected to server: %s\n", hnd->server);
93 if(!cac_LsaOpenPolicy(hnd, mem_ctx, &lop)) {
94 fprintf(stderr, "Could not get lsa policy handle.\n Error: %s\n", nt_errstr(hnd->status));
95 cac_FreeHandle(hnd);
112 fprintf(stdout, "fetching SID info for %s\n", hnd->server);
114 result = cac_LsaFetchSid(hnd, mem_ctx, &fsop);
116 fprintf(stderr, "Could not get sid for server: %s\n. Error: %s\n", hnd->server, nt_errstr(hnd->status));
117 cac_FreeHandle(hnd);
127 fprintf(stdout, "Fetched SID info for %s\n", hnd->server);
141 if(!cac_LsaQueryInfoPolicy(hnd, mem_ctx, &qop)) {
142 fprintf(stderr, "Could not query information policy!.\n Error: %s\n", nt_errstr(hnd->status));
162 result = cac_LsaGetSidsFromNames(hnd, mem_ctx, &gsop);
165 fprintf(stderr, "Could not lookup any sids!\n Error: %s\n", nt_errstr(hnd->status));
210 result = cac_LsaGetNamesFromSids(hnd, mem_ctx, &gnop);
213 fprintf(stderr, "Could not lookup any names!.\n Error: %s\n", nt_errstr(hnd->status));
234 if(!cac_LsaClosePolicy(hnd, mem_ctx, lsa_pol)) {
235 fprintf(stderr, "Could not close LSA policy handle.\n Error: %s\n", nt_errstr(hnd->status));
241 cac_FreeHandle(hnd);