• 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/sam/

Lines Matching refs:hnd

7    CacServerHandle *hnd = NULL;
31 hnd = cac_NewServerHandle(True);
33 cac_SetAuthDataFn(hnd, cactest_GetAuthDataFn);
35 cac_parse_cmd_line(argc, argv, hnd);
37 if(!cac_Connect(hnd, NULL)) {
38 fprintf(stderr, "Could not connect to server %s. Error: %s\n", hnd->server, nt_errstr(hnd->status));
47 if(!cac_SamOpenDomain(hnd, mem_ctx, &sod)) {
48 fprintf(stderr, "Could not open domain. Error: %s\n", nt_errstr(hnd->status));
75 cac_SamClose(hnd, mem_ctx, user_hnd);
88 if(!cac_SamCreateUser(hnd, mem_ctx, &cu)) {
89 printf("Could not create user. Error: %s\n", nt_errstr(hnd->status));
101 cac_SamClose(hnd, mem_ctx, user_hnd);
113 if(!cac_SamOpenUser(hnd, mem_ctx, &ou)) {
114 fprintf(stderr, "Could not open user. Error: %s\n", nt_errstr(hnd->status));
127 while(cac_SamEnumUsers(hnd, mem_ctx, &eu)) {
133 if(CAC_OP_FAILED(hnd->status)) {
134 printf("Could not enumerate Users. Error: %s\n", nt_errstr(hnd->status));
147 if(!cac_SamDeleteGroup(hnd, mem_ctx, user_hnd)) {
148 fprintf(stderr, "Could not delete group. Error: %s\n", nt_errstr(hnd->status));
163 if(!cac_SamClose(hnd, mem_ctx, user_hnd)) {
180 if(!cac_SamGetUserInfo(hnd, mem_ctx, &gi)) {
181 printf("Could not get user info. Error: %s\n", nt_errstr(hnd->status));
198 if(!cac_SamGetUserInfo(hnd, mem_ctx, &gi)) {
199 printf("Could not get user info. Error: %s\n", nt_errstr(hnd->status));
213 if(!cac_SamSetUserInfo(hnd, mem_ctx, &si)) {
214 printf("Could not set user info. Error: %s\n", nt_errstr(hnd->status));
236 if(!cac_SamRenameUser(hnd, mem_ctx, &ru)) {
237 printf("Could not rename user. Error: %s\n", nt_errstr(hnd->status));
265 if(!cac_SamSetPassword(hnd, mem_ctx, &sp)) {
266 printf("Could not set password. Error: %s\n", nt_errstr(hnd->status));
282 cac_SamClose(hnd, mem_ctx, sod.out.dom_hnd);
285 cac_SamClose(hnd, mem_ctx, user_hnd);
288 cac_FreeHandle(hnd);