2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_drsuapi.h"
9 NTSTATUS
rpccli_drsuapi_DsBind(struct rpc_pipe_client
*cli
,
11 struct GUID
*bind_guid
/* [in] [unique] */,
12 struct drsuapi_DsBindInfoCtr
*bind_info
/* [in,out] [unique] */,
13 struct policy_handle
*bind_handle
/* [out] [ref] */,
16 struct drsuapi_DsBind r
;
20 r
.in
.bind_guid
= bind_guid
;
21 r
.in
.bind_info
= bind_info
;
23 if (DEBUGLEVEL
>= 10) {
24 NDR_PRINT_IN_DEBUG(drsuapi_DsBind
, &r
);
27 status
= cli_do_rpc_ndr(cli
,
34 if (!NT_STATUS_IS_OK(status
)) {
38 if (DEBUGLEVEL
>= 10) {
39 NDR_PRINT_OUT_DEBUG(drsuapi_DsBind
, &r
);
42 if (NT_STATUS_IS_ERR(status
)) {
46 /* Return variables */
47 if (bind_info
&& r
.out
.bind_info
) {
48 *bind_info
= *r
.out
.bind_info
;
50 *bind_handle
= *r
.out
.bind_handle
;
54 *werror
= r
.out
.result
;
57 return werror_to_ntstatus(r
.out
.result
);
60 NTSTATUS
rpccli_drsuapi_DsUnbind(struct rpc_pipe_client
*cli
,
62 struct policy_handle
*bind_handle
/* [in,out] [ref] */,
65 struct drsuapi_DsUnbind r
;
69 r
.in
.bind_handle
= bind_handle
;
71 if (DEBUGLEVEL
>= 10) {
72 NDR_PRINT_IN_DEBUG(drsuapi_DsUnbind
, &r
);
75 status
= cli_do_rpc_ndr(cli
,
82 if (!NT_STATUS_IS_OK(status
)) {
86 if (DEBUGLEVEL
>= 10) {
87 NDR_PRINT_OUT_DEBUG(drsuapi_DsUnbind
, &r
);
90 if (NT_STATUS_IS_ERR(status
)) {
94 /* Return variables */
95 *bind_handle
= *r
.out
.bind_handle
;
99 *werror
= r
.out
.result
;
102 return werror_to_ntstatus(r
.out
.result
);
105 NTSTATUS
rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client
*cli
,
107 struct policy_handle
*bind_handle
/* [in] [ref] */,
108 int32_t level
/* [in] */,
109 union drsuapi_DsReplicaSyncRequest req
/* [in] [switch_is(level)] */,
112 struct drsuapi_DsReplicaSync r
;
116 r
.in
.bind_handle
= bind_handle
;
120 if (DEBUGLEVEL
>= 10) {
121 NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaSync
, &r
);
124 status
= cli_do_rpc_ndr(cli
,
128 NDR_DRSUAPI_DSREPLICASYNC
,
131 if (!NT_STATUS_IS_OK(status
)) {
135 if (DEBUGLEVEL
>= 10) {
136 NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaSync
, &r
);
139 if (NT_STATUS_IS_ERR(status
)) {
143 /* Return variables */
147 *werror
= r
.out
.result
;
150 return werror_to_ntstatus(r
.out
.result
);
153 NTSTATUS
rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client
*cli
,
155 struct policy_handle
*bind_handle
/* [in] [ref] */,
156 int32_t *level
/* [in,out] [ref] */,
157 union drsuapi_DsGetNCChangesRequest
*req
/* [in] [ref,switch_is(*level)] */,
158 union drsuapi_DsGetNCChangesCtr
*ctr
/* [out] [ref,switch_is(*level)] */,
161 struct drsuapi_DsGetNCChanges r
;
165 r
.in
.bind_handle
= bind_handle
;
169 if (DEBUGLEVEL
>= 10) {
170 NDR_PRINT_IN_DEBUG(drsuapi_DsGetNCChanges
, &r
);
173 status
= cli_do_rpc_ndr(cli
,
177 NDR_DRSUAPI_DSGETNCCHANGES
,
180 if (!NT_STATUS_IS_OK(status
)) {
184 if (DEBUGLEVEL
>= 10) {
185 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetNCChanges
, &r
);
188 if (NT_STATUS_IS_ERR(status
)) {
192 /* Return variables */
193 *level
= *r
.out
.level
;
198 *werror
= r
.out
.result
;
201 return werror_to_ntstatus(r
.out
.result
);
204 NTSTATUS
rpccli_drsuapi_DsReplicaUpdateRefs(struct rpc_pipe_client
*cli
,
206 struct policy_handle
*bind_handle
/* [in] [ref] */,
207 int32_t level
/* [in] */,
208 union drsuapi_DsReplicaUpdateRefsRequest req
/* [in] [switch_is(level)] */,
211 struct drsuapi_DsReplicaUpdateRefs r
;
215 r
.in
.bind_handle
= bind_handle
;
219 if (DEBUGLEVEL
>= 10) {
220 NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaUpdateRefs
, &r
);
223 status
= cli_do_rpc_ndr(cli
,
227 NDR_DRSUAPI_DSREPLICAUPDATEREFS
,
230 if (!NT_STATUS_IS_OK(status
)) {
234 if (DEBUGLEVEL
>= 10) {
235 NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaUpdateRefs
, &r
);
238 if (NT_STATUS_IS_ERR(status
)) {
242 /* Return variables */
246 *werror
= r
.out
.result
;
249 return werror_to_ntstatus(r
.out
.result
);
252 NTSTATUS
rpccli_DRSUAPI_REPLICA_ADD(struct rpc_pipe_client
*cli
,
256 struct DRSUAPI_REPLICA_ADD r
;
261 if (DEBUGLEVEL
>= 10) {
262 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_ADD
, &r
);
265 status
= cli_do_rpc_ndr(cli
,
269 NDR_DRSUAPI_REPLICA_ADD
,
272 if (!NT_STATUS_IS_OK(status
)) {
276 if (DEBUGLEVEL
>= 10) {
277 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_ADD
, &r
);
280 if (NT_STATUS_IS_ERR(status
)) {
284 /* Return variables */
288 *werror
= r
.out
.result
;
291 return werror_to_ntstatus(r
.out
.result
);
294 NTSTATUS
rpccli_DRSUAPI_REPLICA_DEL(struct rpc_pipe_client
*cli
,
298 struct DRSUAPI_REPLICA_DEL r
;
303 if (DEBUGLEVEL
>= 10) {
304 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_DEL
, &r
);
307 status
= cli_do_rpc_ndr(cli
,
311 NDR_DRSUAPI_REPLICA_DEL
,
314 if (!NT_STATUS_IS_OK(status
)) {
318 if (DEBUGLEVEL
>= 10) {
319 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_DEL
, &r
);
322 if (NT_STATUS_IS_ERR(status
)) {
326 /* Return variables */
330 *werror
= r
.out
.result
;
333 return werror_to_ntstatus(r
.out
.result
);
336 NTSTATUS
rpccli_DRSUAPI_REPLICA_MODIFY(struct rpc_pipe_client
*cli
,
340 struct DRSUAPI_REPLICA_MODIFY r
;
345 if (DEBUGLEVEL
>= 10) {
346 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_MODIFY
, &r
);
349 status
= cli_do_rpc_ndr(cli
,
353 NDR_DRSUAPI_REPLICA_MODIFY
,
356 if (!NT_STATUS_IS_OK(status
)) {
360 if (DEBUGLEVEL
>= 10) {
361 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_MODIFY
, &r
);
364 if (NT_STATUS_IS_ERR(status
)) {
368 /* Return variables */
372 *werror
= r
.out
.result
;
375 return werror_to_ntstatus(r
.out
.result
);
378 NTSTATUS
rpccli_DRSUAPI_VERIFY_NAMES(struct rpc_pipe_client
*cli
,
382 struct DRSUAPI_VERIFY_NAMES r
;
387 if (DEBUGLEVEL
>= 10) {
388 NDR_PRINT_IN_DEBUG(DRSUAPI_VERIFY_NAMES
, &r
);
391 status
= cli_do_rpc_ndr(cli
,
395 NDR_DRSUAPI_VERIFY_NAMES
,
398 if (!NT_STATUS_IS_OK(status
)) {
402 if (DEBUGLEVEL
>= 10) {
403 NDR_PRINT_OUT_DEBUG(DRSUAPI_VERIFY_NAMES
, &r
);
406 if (NT_STATUS_IS_ERR(status
)) {
410 /* Return variables */
414 *werror
= r
.out
.result
;
417 return werror_to_ntstatus(r
.out
.result
);
420 NTSTATUS
rpccli_drsuapi_DsGetMemberships(struct rpc_pipe_client
*cli
,
422 struct policy_handle
*bind_handle
/* [in] [ref] */,
423 int32_t level
/* [in] */,
424 union drsuapi_DsGetMembershipsRequest
*req
/* [in] [ref,switch_is(level)] */,
425 int32_t *level_out
/* [out] [ref] */,
426 union drsuapi_DsGetMembershipsCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
429 struct drsuapi_DsGetMemberships r
;
433 r
.in
.bind_handle
= bind_handle
;
437 if (DEBUGLEVEL
>= 10) {
438 NDR_PRINT_IN_DEBUG(drsuapi_DsGetMemberships
, &r
);
441 status
= cli_do_rpc_ndr(cli
,
445 NDR_DRSUAPI_DSGETMEMBERSHIPS
,
448 if (!NT_STATUS_IS_OK(status
)) {
452 if (DEBUGLEVEL
>= 10) {
453 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetMemberships
, &r
);
456 if (NT_STATUS_IS_ERR(status
)) {
460 /* Return variables */
461 *level_out
= *r
.out
.level_out
;
466 *werror
= r
.out
.result
;
469 return werror_to_ntstatus(r
.out
.result
);
472 NTSTATUS
rpccli_DRSUAPI_INTER_DOMAIN_MOVE(struct rpc_pipe_client
*cli
,
476 struct DRSUAPI_INTER_DOMAIN_MOVE r
;
481 if (DEBUGLEVEL
>= 10) {
482 NDR_PRINT_IN_DEBUG(DRSUAPI_INTER_DOMAIN_MOVE
, &r
);
485 status
= cli_do_rpc_ndr(cli
,
489 NDR_DRSUAPI_INTER_DOMAIN_MOVE
,
492 if (!NT_STATUS_IS_OK(status
)) {
496 if (DEBUGLEVEL
>= 10) {
497 NDR_PRINT_OUT_DEBUG(DRSUAPI_INTER_DOMAIN_MOVE
, &r
);
500 if (NT_STATUS_IS_ERR(status
)) {
504 /* Return variables */
508 *werror
= r
.out
.result
;
511 return werror_to_ntstatus(r
.out
.result
);
514 NTSTATUS
rpccli_drsuapi_DsGetNT4ChangeLog(struct rpc_pipe_client
*cli
,
516 struct policy_handle
*bind_handle
/* [in] [ref] */,
517 uint32_t level
/* [in] */,
518 union drsuapi_DsGetNT4ChangeLogRequest
*req
/* [in] [ref,switch_is(level)] */,
519 uint32_t *level_out
/* [out] [ref] */,
520 union drsuapi_DsGetNT4ChangeLogInfo
*info
/* [out] [ref,switch_is(*level_out)] */,
523 struct drsuapi_DsGetNT4ChangeLog r
;
527 r
.in
.bind_handle
= bind_handle
;
531 if (DEBUGLEVEL
>= 10) {
532 NDR_PRINT_IN_DEBUG(drsuapi_DsGetNT4ChangeLog
, &r
);
535 status
= cli_do_rpc_ndr(cli
,
539 NDR_DRSUAPI_DSGETNT4CHANGELOG
,
542 if (!NT_STATUS_IS_OK(status
)) {
546 if (DEBUGLEVEL
>= 10) {
547 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetNT4ChangeLog
, &r
);
550 if (NT_STATUS_IS_ERR(status
)) {
554 /* Return variables */
555 *level_out
= *r
.out
.level_out
;
560 *werror
= r
.out
.result
;
563 return werror_to_ntstatus(r
.out
.result
);
566 NTSTATUS
rpccli_drsuapi_DsCrackNames(struct rpc_pipe_client
*cli
,
568 struct policy_handle
*bind_handle
/* [in] [ref] */,
569 int32_t level
/* [in] */,
570 union drsuapi_DsNameRequest
*req
/* [in] [ref,switch_is(level)] */,
571 int32_t *level_out
/* [out] [ref] */,
572 union drsuapi_DsNameCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
575 struct drsuapi_DsCrackNames r
;
579 r
.in
.bind_handle
= bind_handle
;
583 if (DEBUGLEVEL
>= 10) {
584 NDR_PRINT_IN_DEBUG(drsuapi_DsCrackNames
, &r
);
587 status
= cli_do_rpc_ndr(cli
,
591 NDR_DRSUAPI_DSCRACKNAMES
,
594 if (!NT_STATUS_IS_OK(status
)) {
598 if (DEBUGLEVEL
>= 10) {
599 NDR_PRINT_OUT_DEBUG(drsuapi_DsCrackNames
, &r
);
602 if (NT_STATUS_IS_ERR(status
)) {
606 /* Return variables */
607 *level_out
= *r
.out
.level_out
;
612 *werror
= r
.out
.result
;
615 return werror_to_ntstatus(r
.out
.result
);
618 NTSTATUS
rpccli_drsuapi_DsWriteAccountSpn(struct rpc_pipe_client
*cli
,
620 struct policy_handle
*bind_handle
/* [in] [ref] */,
621 int32_t level
/* [in] */,
622 union drsuapi_DsWriteAccountSpnRequest
*req
/* [in] [ref,switch_is(level)] */,
623 int32_t *level_out
/* [out] [ref] */,
624 union drsuapi_DsWriteAccountSpnResult
*res
/* [out] [ref,switch_is(*level_out)] */,
627 struct drsuapi_DsWriteAccountSpn r
;
631 r
.in
.bind_handle
= bind_handle
;
635 if (DEBUGLEVEL
>= 10) {
636 NDR_PRINT_IN_DEBUG(drsuapi_DsWriteAccountSpn
, &r
);
639 status
= cli_do_rpc_ndr(cli
,
643 NDR_DRSUAPI_DSWRITEACCOUNTSPN
,
646 if (!NT_STATUS_IS_OK(status
)) {
650 if (DEBUGLEVEL
>= 10) {
651 NDR_PRINT_OUT_DEBUG(drsuapi_DsWriteAccountSpn
, &r
);
654 if (NT_STATUS_IS_ERR(status
)) {
658 /* Return variables */
659 *level_out
= *r
.out
.level_out
;
664 *werror
= r
.out
.result
;
667 return werror_to_ntstatus(r
.out
.result
);
670 NTSTATUS
rpccli_drsuapi_DsRemoveDSServer(struct rpc_pipe_client
*cli
,
672 struct policy_handle
*bind_handle
/* [in] [ref] */,
673 int32_t level
/* [in] */,
674 union drsuapi_DsRemoveDSServerRequest
*req
/* [in] [ref,switch_is(level)] */,
675 int32_t *level_out
/* [out] [ref] */,
676 union drsuapi_DsRemoveDSServerResult
*res
/* [out] [ref,switch_is(*level_out)] */,
679 struct drsuapi_DsRemoveDSServer r
;
683 r
.in
.bind_handle
= bind_handle
;
687 if (DEBUGLEVEL
>= 10) {
688 NDR_PRINT_IN_DEBUG(drsuapi_DsRemoveDSServer
, &r
);
691 status
= cli_do_rpc_ndr(cli
,
695 NDR_DRSUAPI_DSREMOVEDSSERVER
,
698 if (!NT_STATUS_IS_OK(status
)) {
702 if (DEBUGLEVEL
>= 10) {
703 NDR_PRINT_OUT_DEBUG(drsuapi_DsRemoveDSServer
, &r
);
706 if (NT_STATUS_IS_ERR(status
)) {
710 /* Return variables */
711 *level_out
= *r
.out
.level_out
;
716 *werror
= r
.out
.result
;
719 return werror_to_ntstatus(r
.out
.result
);
722 NTSTATUS
rpccli_DRSUAPI_REMOVE_DS_DOMAIN(struct rpc_pipe_client
*cli
,
726 struct DRSUAPI_REMOVE_DS_DOMAIN r
;
731 if (DEBUGLEVEL
>= 10) {
732 NDR_PRINT_IN_DEBUG(DRSUAPI_REMOVE_DS_DOMAIN
, &r
);
735 status
= cli_do_rpc_ndr(cli
,
739 NDR_DRSUAPI_REMOVE_DS_DOMAIN
,
742 if (!NT_STATUS_IS_OK(status
)) {
746 if (DEBUGLEVEL
>= 10) {
747 NDR_PRINT_OUT_DEBUG(DRSUAPI_REMOVE_DS_DOMAIN
, &r
);
750 if (NT_STATUS_IS_ERR(status
)) {
754 /* Return variables */
758 *werror
= r
.out
.result
;
761 return werror_to_ntstatus(r
.out
.result
);
764 NTSTATUS
rpccli_drsuapi_DsGetDomainControllerInfo(struct rpc_pipe_client
*cli
,
766 struct policy_handle
*bind_handle
/* [in] [ref] */,
767 int32_t level
/* [in] */,
768 union drsuapi_DsGetDCInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
769 int32_t *level_out
/* [out] [ref] */,
770 union drsuapi_DsGetDCInfoCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
773 struct drsuapi_DsGetDomainControllerInfo r
;
777 r
.in
.bind_handle
= bind_handle
;
781 if (DEBUGLEVEL
>= 10) {
782 NDR_PRINT_IN_DEBUG(drsuapi_DsGetDomainControllerInfo
, &r
);
785 status
= cli_do_rpc_ndr(cli
,
789 NDR_DRSUAPI_DSGETDOMAINCONTROLLERINFO
,
792 if (!NT_STATUS_IS_OK(status
)) {
796 if (DEBUGLEVEL
>= 10) {
797 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetDomainControllerInfo
, &r
);
800 if (NT_STATUS_IS_ERR(status
)) {
804 /* Return variables */
805 *level_out
= *r
.out
.level_out
;
810 *werror
= r
.out
.result
;
813 return werror_to_ntstatus(r
.out
.result
);
816 NTSTATUS
rpccli_drsuapi_DsAddEntry(struct rpc_pipe_client
*cli
,
818 struct policy_handle
*bind_handle
/* [in] [ref] */,
819 int32_t level
/* [in] */,
820 union drsuapi_DsAddEntryRequest
*req
/* [in] [ref,switch_is(level)] */,
821 int32_t *level_out
/* [out] [ref] */,
822 union drsuapi_DsAddEntryCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
825 struct drsuapi_DsAddEntry r
;
829 r
.in
.bind_handle
= bind_handle
;
833 if (DEBUGLEVEL
>= 10) {
834 NDR_PRINT_IN_DEBUG(drsuapi_DsAddEntry
, &r
);
837 status
= cli_do_rpc_ndr(cli
,
841 NDR_DRSUAPI_DSADDENTRY
,
844 if (!NT_STATUS_IS_OK(status
)) {
848 if (DEBUGLEVEL
>= 10) {
849 NDR_PRINT_OUT_DEBUG(drsuapi_DsAddEntry
, &r
);
852 if (NT_STATUS_IS_ERR(status
)) {
856 /* Return variables */
857 *level_out
= *r
.out
.level_out
;
862 *werror
= r
.out
.result
;
865 return werror_to_ntstatus(r
.out
.result
);
868 NTSTATUS
rpccli_DRSUAPI_EXECUTE_KCC(struct rpc_pipe_client
*cli
,
872 struct DRSUAPI_EXECUTE_KCC r
;
877 if (DEBUGLEVEL
>= 10) {
878 NDR_PRINT_IN_DEBUG(DRSUAPI_EXECUTE_KCC
, &r
);
881 status
= cli_do_rpc_ndr(cli
,
885 NDR_DRSUAPI_EXECUTE_KCC
,
888 if (!NT_STATUS_IS_OK(status
)) {
892 if (DEBUGLEVEL
>= 10) {
893 NDR_PRINT_OUT_DEBUG(DRSUAPI_EXECUTE_KCC
, &r
);
896 if (NT_STATUS_IS_ERR(status
)) {
900 /* Return variables */
904 *werror
= r
.out
.result
;
907 return werror_to_ntstatus(r
.out
.result
);
910 NTSTATUS
rpccli_drsuapi_DsReplicaGetInfo(struct rpc_pipe_client
*cli
,
912 struct policy_handle
*bind_handle
/* [in] [ref] */,
913 enum drsuapi_DsReplicaGetInfoLevel level
/* [in] */,
914 union drsuapi_DsReplicaGetInfoRequest
*req
/* [in] [ref,switch_is(level)] */,
915 enum drsuapi_DsReplicaInfoType
*info_type
/* [out] [ref] */,
916 union drsuapi_DsReplicaInfo
*info
/* [out] [ref,switch_is(*info_type)] */,
919 struct drsuapi_DsReplicaGetInfo r
;
923 r
.in
.bind_handle
= bind_handle
;
927 if (DEBUGLEVEL
>= 10) {
928 NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaGetInfo
, &r
);
931 status
= cli_do_rpc_ndr(cli
,
935 NDR_DRSUAPI_DSREPLICAGETINFO
,
938 if (!NT_STATUS_IS_OK(status
)) {
942 if (DEBUGLEVEL
>= 10) {
943 NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaGetInfo
, &r
);
946 if (NT_STATUS_IS_ERR(status
)) {
950 /* Return variables */
951 *info_type
= *r
.out
.info_type
;
956 *werror
= r
.out
.result
;
959 return werror_to_ntstatus(r
.out
.result
);
962 NTSTATUS
rpccli_DRSUAPI_ADD_SID_HISTORY(struct rpc_pipe_client
*cli
,
966 struct DRSUAPI_ADD_SID_HISTORY r
;
971 if (DEBUGLEVEL
>= 10) {
972 NDR_PRINT_IN_DEBUG(DRSUAPI_ADD_SID_HISTORY
, &r
);
975 status
= cli_do_rpc_ndr(cli
,
979 NDR_DRSUAPI_ADD_SID_HISTORY
,
982 if (!NT_STATUS_IS_OK(status
)) {
986 if (DEBUGLEVEL
>= 10) {
987 NDR_PRINT_OUT_DEBUG(DRSUAPI_ADD_SID_HISTORY
, &r
);
990 if (NT_STATUS_IS_ERR(status
)) {
994 /* Return variables */
998 *werror
= r
.out
.result
;
1001 return werror_to_ntstatus(r
.out
.result
);
1004 NTSTATUS
rpccli_drsuapi_DsGetMemberships2(struct rpc_pipe_client
*cli
,
1005 TALLOC_CTX
*mem_ctx
,
1006 struct policy_handle
*bind_handle
/* [in] [ref] */,
1007 int32_t level
/* [in] */,
1008 union drsuapi_DsGetMemberships2Request
*req
/* [in] [ref,switch_is(level)] */,
1009 int32_t *level_out
/* [out] [ref] */,
1010 union drsuapi_DsGetMemberships2Ctr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
1013 struct drsuapi_DsGetMemberships2 r
;
1017 r
.in
.bind_handle
= bind_handle
;
1021 if (DEBUGLEVEL
>= 10) {
1022 NDR_PRINT_IN_DEBUG(drsuapi_DsGetMemberships2
, &r
);
1025 status
= cli_do_rpc_ndr(cli
,
1029 NDR_DRSUAPI_DSGETMEMBERSHIPS2
,
1032 if (!NT_STATUS_IS_OK(status
)) {
1036 if (DEBUGLEVEL
>= 10) {
1037 NDR_PRINT_OUT_DEBUG(drsuapi_DsGetMemberships2
, &r
);
1040 if (NT_STATUS_IS_ERR(status
)) {
1044 /* Return variables */
1045 *level_out
= *r
.out
.level_out
;
1050 *werror
= r
.out
.result
;
1053 return werror_to_ntstatus(r
.out
.result
);
1056 NTSTATUS
rpccli_DRSUAPI_REPLICA_VERIFY_OBJECTS(struct rpc_pipe_client
*cli
,
1057 TALLOC_CTX
*mem_ctx
,
1060 struct DRSUAPI_REPLICA_VERIFY_OBJECTS r
;
1065 if (DEBUGLEVEL
>= 10) {
1066 NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_VERIFY_OBJECTS
, &r
);
1069 status
= cli_do_rpc_ndr(cli
,
1073 NDR_DRSUAPI_REPLICA_VERIFY_OBJECTS
,
1076 if (!NT_STATUS_IS_OK(status
)) {
1080 if (DEBUGLEVEL
>= 10) {
1081 NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_VERIFY_OBJECTS
, &r
);
1084 if (NT_STATUS_IS_ERR(status
)) {
1088 /* Return variables */
1092 *werror
= r
.out
.result
;
1095 return werror_to_ntstatus(r
.out
.result
);
1098 NTSTATUS
rpccli_DRSUAPI_GET_OBJECT_EXISTENCE(struct rpc_pipe_client
*cli
,
1099 TALLOC_CTX
*mem_ctx
,
1102 struct DRSUAPI_GET_OBJECT_EXISTENCE r
;
1107 if (DEBUGLEVEL
>= 10) {
1108 NDR_PRINT_IN_DEBUG(DRSUAPI_GET_OBJECT_EXISTENCE
, &r
);
1111 status
= cli_do_rpc_ndr(cli
,
1115 NDR_DRSUAPI_GET_OBJECT_EXISTENCE
,
1118 if (!NT_STATUS_IS_OK(status
)) {
1122 if (DEBUGLEVEL
>= 10) {
1123 NDR_PRINT_OUT_DEBUG(DRSUAPI_GET_OBJECT_EXISTENCE
, &r
);
1126 if (NT_STATUS_IS_ERR(status
)) {
1130 /* Return variables */
1134 *werror
= r
.out
.result
;
1137 return werror_to_ntstatus(r
.out
.result
);
1140 NTSTATUS
rpccli_drsuapi_QuerySitesByCost(struct rpc_pipe_client
*cli
,
1141 TALLOC_CTX
*mem_ctx
,
1142 struct policy_handle
*bind_handle
/* [in] [ref] */,
1143 int32_t level
/* [in] */,
1144 union drsuapi_QuerySitesByCostRequest
*req
/* [in] [ref,switch_is(level)] */,
1145 int32_t *level_out
/* [out] [ref] */,
1146 union drsuapi_QuerySitesByCostCtr
*ctr
/* [out] [ref,switch_is(*level_out)] */,
1149 struct drsuapi_QuerySitesByCost r
;
1153 r
.in
.bind_handle
= bind_handle
;
1157 if (DEBUGLEVEL
>= 10) {
1158 NDR_PRINT_IN_DEBUG(drsuapi_QuerySitesByCost
, &r
);
1161 status
= cli_do_rpc_ndr(cli
,
1165 NDR_DRSUAPI_QUERYSITESBYCOST
,
1168 if (!NT_STATUS_IS_OK(status
)) {
1172 if (DEBUGLEVEL
>= 10) {
1173 NDR_PRINT_OUT_DEBUG(drsuapi_QuerySitesByCost
, &r
);
1176 if (NT_STATUS_IS_ERR(status
)) {
1180 /* Return variables */
1181 *level_out
= *r
.out
.level_out
;
1186 *werror
= r
.out
.result
;
1189 return werror_to_ntstatus(r
.out
.result
);