Lines Matching refs:result
40 NTSTATUS result;
51 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
52 if (!NT_STATUS_IS_OK(result))
53 return result;
77 result = rpccli_samr_query_dispinfo(cli, mem_ctx, &dom_pol,
122 } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
124 return result;
191 NTSTATUS result;
199 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
200 if (!NT_STATUS_IS_OK(result))
201 return result;
210 result = rpccli_samr_enum_als_groups( cli, mem_ctx2, &dom_pol,
214 if (!NT_STATUS_IS_OK(result) &&
215 !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES) )
218 return result;
233 } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
246 NTSTATUS result;
269 result = cm_connect_lsa(domain, mem_ctx, &cli, &lsa_policy);
270 if (!NT_STATUS_IS_OK(result))
271 return result;
273 result = rpccli_lsa_lookup_names(cli, mem_ctx, &lsa_policy, 1,
276 if (!NT_STATUS_IS_OK(result))
277 return result;
300 NTSTATUS result;
307 result = cm_connect_lsa(domain, mem_ctx, &cli, &lsa_policy);
308 if (!NT_STATUS_IS_OK(result))
309 return result;
311 result = rpccli_lsa_lookup_sids(cli, mem_ctx, &lsa_policy,
313 if (!NT_STATUS_IS_OK(result))
314 return result;
336 NTSTATUS result;
360 result = cm_connect_lsa(domain, mem_ctx, &cli, &lsa_policy);
361 if (!NT_STATUS_IS_OK(result)) {
362 return result;
365 result = rpccli_lsa_lookup_sids(cli, mem_ctx, &lsa_policy,
368 if (!NT_STATUS_IS_OK(result) &&
369 !NT_STATUS_EQUAL(result, STATUS_SOME_UNMAPPED)) {
370 return result;
381 return result;
390 NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
432 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
433 if (!NT_STATUS_IS_OK(result))
434 return result;
437 result = rpccli_samr_open_user(cli, mem_ctx, &dom_pol,
441 if (!NT_STATUS_IS_OK(result))
442 return result;
445 result = rpccli_samr_query_userinfo(cli, mem_ctx, &user_pol,
450 if (!NT_STATUS_IS_OK(result))
451 return result;
473 NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
492 result = lookup_usergroups_cached(domain, mem_ctx, user_sid,
495 if (NT_STATUS_IS_OK(result)) {
501 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
502 if (!NT_STATUS_IS_OK(result))
503 return result;
506 result = rpccli_samr_open_user(cli, mem_ctx, &dom_pol,
509 if (!NT_STATUS_IS_OK(result))
510 return result;
513 result = rpccli_samr_query_usergroups(cli, mem_ctx, &user_pol,
518 if (!NT_STATUS_IS_OK(result) || (*num_groups) == 0)
519 return result;
539 NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
555 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
556 if (!NT_STATUS_IS_OK(result))
557 return result;
583 result = rpccli_samr_query_useraliases(cli, mem_ctx, &dom_pol,
588 if (!NT_STATUS_IS_OK(result)) {
616 return result;
627 NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
646 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
647 if (!NT_STATUS_IS_OK(result))
648 return result;
650 result = rpccli_samr_open_group(cli, mem_ctx, &dom_pol,
653 if (!NT_STATUS_IS_OK(result))
654 return result;
664 result = rpccli_samr_query_groupmem(cli, mem_ctx,
673 if (!NT_STATUS_IS_OK(result))
674 return result;
708 result = rpccli_samr_lookup_rids(cli, mem_ctx,
718 if (!NT_STATUS_IS_OK(result) &&
719 !NT_STATUS_EQUAL(result, STATUS_SOME_UNMAPPED))
720 return result;
722 /* Copy result into array. The talloc system will take
818 NTSTATUS result;
841 result = NT_STATUS_OK;
854 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
855 if (!NT_STATUS_IS_OK(result)) {
861 result = rpccli_samr_query_dom_info(cli, mem_ctx, &dom_pol, 8, &ctr);
863 if (NT_STATUS_IS_OK(result)) {
872 result = rpccli_samr_query_dom_info(cli, mem_ctx, &dom_pol, 2, &ctr);
874 if (NT_STATUS_IS_OK(result)) {
893 return result;
904 NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
916 result = cm_connect_lsa(domain, mem_ctx, &cli, &lsa_policy);
917 if (!NT_STATUS_IS_OK(result))
918 return result;
920 result = STATUS_MORE_ENTRIES;
922 while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) {
928 result = rpccli_lsa_enum_trust_dom(cli, mem_ctx,
933 if (!NT_STATUS_IS_OK(result) &&
934 !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES))
955 return result;
963 NTSTATUS result;
970 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
971 if (!NT_STATUS_IS_OK(result)) {
975 result = rpccli_samr_query_dom_info(cli, mem_ctx, &dom_pol, 12, &ctr);
976 if (!NT_STATUS_IS_OK(result)) {
987 return result;
995 NTSTATUS result;
1002 result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol);
1003 if (!NT_STATUS_IS_OK(result)) {
1007 result = rpccli_samr_query_dom_info(cli, mem_ctx, &dom_pol, 1, &ctr);
1008 if (!NT_STATUS_IS_OK(result)) {
1019 return result;