diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-09-19 22:39:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:00:48 -0500 |
commit | e3068ef054b6c500e9d9be16ffebda5cb2402f3a (patch) | |
tree | 94dc77a7363146518073d8e5712cfe3e15969c8b /source3/librpc/gen_ndr/cli_unixinfo.c | |
parent | 8c79b4cbc152dd4df11d3916739bc851b6db2e86 (diff) | |
download | samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.tar.gz samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.tar.bz2 samba-e3068ef054b6c500e9d9be16ffebda5cb2402f3a.zip |
r18692: Dump debug data when DEBUGLEVEL >= 10
(This used to be commit 503d1a27d5838718355fdd37968c3670f53b1cd7)
Diffstat (limited to 'source3/librpc/gen_ndr/cli_unixinfo.c')
-rw-r--r-- | source3/librpc/gen_ndr/cli_unixinfo.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/cli_unixinfo.c b/source3/librpc/gen_ndr/cli_unixinfo.c index f84ad9175b..8448b76a8d 100644 --- a/source3/librpc/gen_ndr/cli_unixinfo.c +++ b/source3/librpc/gen_ndr/cli_unixinfo.c @@ -13,7 +13,15 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* In parameters */ r.in.sid = sid; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r); + 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); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -32,7 +40,15 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* In parameters */ r.in.uid = uid; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r); + 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); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -51,7 +67,15 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* In parameters */ r.in.sid = sid; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r); + 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); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -70,7 +94,15 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* In parameters */ r.in.gid = gid; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r); + 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); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } @@ -90,7 +122,15 @@ NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c /* In parameters */ r.in.count = count; r.in.uids = uids; + + if (DEBUGLEVEL >= 10) + NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r); + 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); + + if (DEBUGLEVEL >= 10) + NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r); + if (NT_STATUS_IS_ERR(status)) { return status; } |