2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_unixinfo.h"
9 NTSTATUS
rpccli_unixinfo_SidToUid(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, struct dom_sid sid
, uint64_t *uid
)
11 struct unixinfo_SidToUid r
;
18 NDR_PRINT_IN_DEBUG(unixinfo_SidToUid
, &r
);
20 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_UNIXINFO
, DCERPC_UNIXINFO_SIDTOUID
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_unixinfo_SidToUid
, (ndr_push_flags_fn_t
)ndr_push_unixinfo_SidToUid
);
22 if (!NT_STATUS_IS_OK(status
)) {
27 NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid
, &r
);
29 if (NT_STATUS_IS_ERR(status
)) {
33 /* Return variables */
40 NTSTATUS
rpccli_unixinfo_UidToSid(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint64_t uid
, struct dom_sid
*sid
)
42 struct unixinfo_UidToSid r
;
49 NDR_PRINT_IN_DEBUG(unixinfo_UidToSid
, &r
);
51 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_UNIXINFO
, DCERPC_UNIXINFO_UIDTOSID
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_unixinfo_UidToSid
, (ndr_push_flags_fn_t
)ndr_push_unixinfo_UidToSid
);
53 if (!NT_STATUS_IS_OK(status
)) {
58 NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid
, &r
);
60 if (NT_STATUS_IS_ERR(status
)) {
64 /* Return variables */
71 NTSTATUS
rpccli_unixinfo_SidToGid(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, struct dom_sid sid
, uint64_t *gid
)
73 struct unixinfo_SidToGid r
;
80 NDR_PRINT_IN_DEBUG(unixinfo_SidToGid
, &r
);
82 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_UNIXINFO
, DCERPC_UNIXINFO_SIDTOGID
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_unixinfo_SidToGid
, (ndr_push_flags_fn_t
)ndr_push_unixinfo_SidToGid
);
84 if (!NT_STATUS_IS_OK(status
)) {
89 NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid
, &r
);
91 if (NT_STATUS_IS_ERR(status
)) {
95 /* Return variables */
102 NTSTATUS
rpccli_unixinfo_GidToSid(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint64_t gid
, struct dom_sid
*sid
)
104 struct unixinfo_GidToSid r
;
110 if (DEBUGLEVEL
>= 10)
111 NDR_PRINT_IN_DEBUG(unixinfo_GidToSid
, &r
);
113 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_UNIXINFO
, DCERPC_UNIXINFO_GIDTOSID
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_unixinfo_GidToSid
, (ndr_push_flags_fn_t
)ndr_push_unixinfo_GidToSid
);
115 if (!NT_STATUS_IS_OK(status
)) {
119 if (DEBUGLEVEL
>= 10)
120 NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid
, &r
);
122 if (NT_STATUS_IS_ERR(status
)) {
126 /* Return variables */
133 NTSTATUS
rpccli_unixinfo_GetPWUid(struct rpc_pipe_client
*cli
, TALLOC_CTX
*mem_ctx
, uint32_t *count
, uint64_t *uids
, struct unixinfo_GetPWUidInfo
*infos
)
135 struct unixinfo_GetPWUid r
;
142 if (DEBUGLEVEL
>= 10)
143 NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid
, &r
);
145 status
= cli_do_rpc_ndr(cli
, mem_ctx
, PI_UNIXINFO
, DCERPC_UNIXINFO_GETPWUID
, &r
, (ndr_pull_flags_fn_t
)ndr_pull_unixinfo_GetPWUid
, (ndr_push_flags_fn_t
)ndr_push_unixinfo_GetPWUid
);
147 if (!NT_STATUS_IS_OK(status
)) {
151 if (DEBUGLEVEL
>= 10)
152 NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid
, &r
);
154 if (NT_STATUS_IS_ERR(status
)) {
158 /* Return variables */
159 *count
= *r
.out
.count
;
160 memcpy(infos
, r
.out
.infos
, *r
.in
.count
);