summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-19 22:39:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:48 -0500
commite3068ef054b6c500e9d9be16ffebda5cb2402f3a (patch)
tree94dc77a7363146518073d8e5712cfe3e15969c8b /source3
parent8c79b4cbc152dd4df11d3916739bc851b6db2e86 (diff)
downloadsamba-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')
-rw-r--r--source3/librpc/gen_ndr/cli_dfs.c184
-rw-r--r--source3/librpc/gen_ndr/cli_echo.c80
-rw-r--r--source3/librpc/gen_ndr/cli_eventlog.c192
-rw-r--r--source3/librpc/gen_ndr/cli_initshutdown.c24
-rw-r--r--source3/librpc/gen_ndr/cli_lsa.c656
-rw-r--r--source3/librpc/gen_ndr/cli_netlogon.c376
-rw-r--r--source3/librpc/gen_ndr/cli_unixinfo.c40
-rw-r--r--source3/librpc/gen_ndr/cli_winreg.c280
-rw-r--r--source3/librpc/gen_ndr/cli_wkssvc.c248
-rw-r--r--source3/librpc/gen_ndr/srv_dfs.c138
-rw-r--r--source3/librpc/gen_ndr/srv_echo.c60
-rw-r--r--source3/librpc/gen_ndr/srv_eventlog.c144
-rw-r--r--source3/librpc/gen_ndr/srv_initshutdown.c18
-rw-r--r--source3/librpc/gen_ndr/srv_lsa.c492
-rw-r--r--source3/librpc/gen_ndr/srv_netlogon.c282
-rw-r--r--source3/librpc/gen_ndr/srv_unixinfo.c30
-rw-r--r--source3/librpc/gen_ndr/srv_winreg.c210
-rw-r--r--source3/librpc/gen_ndr/srv_wkssvc.c186
18 files changed, 3640 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c
index 5de9117eaa..fda91f2f5f 100644
--- a/source3/librpc/gen_ndr/cli_dfs.c
+++ b/source3/librpc/gen_ndr/cli_dfs.c
@@ -12,7 +12,15 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -35,7 +43,15 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const
r.in.share = share;
r.in.comment = comment;
r.in.flags = flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Add, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -55,7 +71,15 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
r.in.path = path;
r.in.server = server;
r.in.share = share;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -72,7 +96,15 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -93,7 +125,15 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co
r.in.server = server;
r.in.share = share;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -116,7 +156,15 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3
r.in.info = info;
r.in.unknown = unknown;
r.in.total = total;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -135,7 +183,15 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -152,7 +208,15 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Move, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -169,7 +233,15 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -186,7 +258,15 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -203,7 +283,15 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -220,7 +308,15 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -237,7 +333,15 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -254,7 +358,15 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -271,7 +383,15 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -288,7 +408,15 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -305,7 +433,15 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -322,7 +458,15 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -339,7 +483,15 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -356,7 +508,15 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -373,7 +533,15 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -395,7 +563,15 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con
r.in.bufsize = bufsize;
r.in.info = info;
r.in.total = total;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -414,7 +590,15 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_echo.c b/source3/librpc/gen_ndr/cli_echo.c
index 8632077055..9cfe744e76 100644
--- a/source3/librpc/gen_ndr/cli_echo.c
+++ b/source3/librpc/gen_ndr/cli_echo.c
@@ -13,7 +13,15 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui
/* In parameters */
r.in.in_data = in_data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_AddOne, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_ADDONE, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_AddOne, (ndr_push_flags_fn_t)ndr_push_echo_AddOne);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_AddOne, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -33,7 +41,15 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.len = len;
r.in.in_data = in_data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_EchoData, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_ECHODATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_EchoData, (ndr_push_flags_fn_t)ndr_push_echo_EchoData);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_EchoData, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -53,7 +69,15 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.len = len;
r.in.data = data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_SinkData, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_SINKDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_SinkData, (ndr_push_flags_fn_t)ndr_push_echo_SinkData);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_SinkData, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -71,7 +95,15 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.len = len;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_SourceData, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_SOURCEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_SourceData, (ndr_push_flags_fn_t)ndr_push_echo_SourceData);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_SourceData, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -90,7 +122,15 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.s1 = s1;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestCall, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTCALL, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestCall, (ndr_push_flags_fn_t)ndr_push_echo_TestCall);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestCall, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -109,7 +149,15 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestCall2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTCALL2, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestCall2, (ndr_push_flags_fn_t)ndr_push_echo_TestCall2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestCall2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -128,7 +176,15 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.seconds = seconds;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestSleep, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTSLEEP, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestSleep, (ndr_push_flags_fn_t)ndr_push_echo_TestSleep);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestSleep, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -149,7 +205,15 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.foo1 = foo1;
r.in.foo2 = foo2;
r.in.foo3 = foo3;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestEnum, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestEnum, (ndr_push_flags_fn_t)ndr_push_echo_TestEnum);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestEnum, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -170,7 +234,15 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.data = data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestSurrounding, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTSURROUNDING, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestSurrounding, (ndr_push_flags_fn_t)ndr_push_echo_TestSurrounding);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -189,7 +261,15 @@ NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.data = data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTDOUBLEPOINTER, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestDoublePointer, (ndr_push_flags_fn_t)ndr_push_echo_TestDoublePointer);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_eventlog.c b/source3/librpc/gen_ndr/cli_eventlog.c
index 606a531d8b..18ec6a065c 100644
--- a/source3/librpc/gen_ndr/cli_eventlog.c
+++ b/source3/librpc/gen_ndr/cli_eventlog.c
@@ -14,7 +14,15 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
/* In parameters */
r.in.handle = handle;
r.in.unknown = unknown;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -31,7 +39,15 @@ NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -49,7 +65,15 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLOSEEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_CloseEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_CloseEventLog);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -67,7 +91,15 @@ NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALL
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTEREVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterEventSource, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterEventSource);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -85,7 +117,15 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETNUMRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetNumRecords, (ndr_push_flags_fn_t)ndr_push_eventlog_GetNumRecords);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -103,7 +143,15 @@ NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETOLDESTRECORD, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetOldestRecord, (ndr_push_flags_fn_t)ndr_push_eventlog_GetOldestRecord);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -120,7 +168,15 @@ NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CHANGENOTIFY, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ChangeNotify, (ndr_push_flags_fn_t)ndr_push_eventlog_ChangeNotify);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -142,7 +198,15 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.servername = servername;
r.in.unknown2 = unknown2;
r.in.unknown3 = unknown3;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -160,7 +224,15 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceW, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -177,7 +249,15 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -198,7 +278,15 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.flags = flags;
r.in.offset = offset;
r.in.number_of_bytes = number_of_bytes;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -218,7 +306,15 @@ NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -235,7 +331,15 @@ NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -252,7 +356,15 @@ NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -269,7 +381,15 @@ NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -286,7 +406,15 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceA, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -303,7 +431,15 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -320,7 +456,15 @@ NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX *
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -337,7 +481,15 @@ NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventA);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -354,7 +506,15 @@ NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterClusterSvc);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -371,7 +531,15 @@ NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterClusterSvc);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -388,7 +556,15 @@ NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_WRITECLUSTEREVENTS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_WriteClusterEvents, (ndr_push_flags_fn_t)ndr_push_eventlog_WriteClusterEvents);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -405,7 +581,15 @@ NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETLOGINTORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetLogIntormation, (ndr_push_flags_fn_t)ndr_push_eventlog_GetLogIntormation);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -423,7 +607,15 @@ NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_FLUSHEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_FlushEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_FlushEventLog);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_initshutdown.c b/source3/librpc/gen_ndr/cli_initshutdown.c
index dc07b4c20c..689c639838 100644
--- a/source3/librpc/gen_ndr/cli_initshutdown.c
+++ b/source3/librpc/gen_ndr/cli_initshutdown.c
@@ -17,7 +17,15 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.timeout = timeout;
r.in.force_apps = force_apps;
r.in.reboot = reboot;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_INIT, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_Init, (ndr_push_flags_fn_t)ndr_push_initshutdown_Init);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -35,7 +43,15 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
/* In parameters */
r.in.server = server;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_ABORT, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_Abort, (ndr_push_flags_fn_t)ndr_push_initshutdown_Abort);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -58,7 +74,15 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.force_apps = force_apps;
r.in.reboot = reboot;
r.in.reason = reason;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_INITEX, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_InitEx, (ndr_push_flags_fn_t)ndr_push_initshutdown_InitEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_lsa.c b/source3/librpc/gen_ndr/cli_lsa.c
index 49ba425c28..e7be9032e5 100644
--- a/source3/librpc/gen_ndr/cli_lsa.c
+++ b/source3/librpc/gen_ndr/cli_lsa.c
@@ -13,7 +13,15 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_Close, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLOSE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_Close, (ndr_push_flags_fn_t)ndr_push_lsa_Close);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_Close, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -32,7 +40,15 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_Delete, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_Delete, (ndr_push_flags_fn_t)ndr_push_lsa_Delete);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_Delete, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -52,7 +68,15 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.handle = handle;
r.in.resume_handle = resume_handle;
r.in.max_count = max_count;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMPRIVS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumPrivs, (ndr_push_flags_fn_t)ndr_push_lsa_EnumPrivs);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -73,7 +97,15 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.handle = handle;
r.in.sec_info = sec_info;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QuerySecurity, (ndr_push_flags_fn_t)ndr_push_lsa_QuerySecurity);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -91,7 +123,15 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSECOBJ, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSecObj, (ndr_push_flags_fn_t)ndr_push_lsa_SetSecObj);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -108,7 +148,15 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CHANGEPASSWORD, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_ChangePassword, (ndr_push_flags_fn_t)ndr_push_lsa_ChangePassword);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -128,7 +176,15 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.system_name = system_name;
r.in.attr = attr;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_OpenPolicy);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -148,7 +204,15 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem
/* In parameters */
r.in.handle = handle;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYINFOPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryInfoPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_QueryInfoPolicy);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -166,7 +230,15 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFOPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInfoPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_SetInfoPolicy);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -183,7 +255,15 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLEARAUDITLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_ClearAuditLog, (ndr_push_flags_fn_t)ndr_push_lsa_ClearAuditLog);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -203,7 +283,15 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.handle = handle;
r.in.sid = sid;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATEACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateAccount, (ndr_push_flags_fn_t)ndr_push_lsa_CreateAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -224,7 +312,15 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.handle = handle;
r.in.resume_handle = resume_handle;
r.in.num_entries = num_entries;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccounts, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccounts);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -246,7 +342,15 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.handle = handle;
r.in.info = info;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomain);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -267,7 +371,15 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.handle = handle;
r.in.resume_handle = resume_handle;
r.in.max_size = max_size;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMTRUSTDOM, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumTrustDom, (ndr_push_flags_fn_t)ndr_push_lsa_EnumTrustDom);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -292,7 +404,15 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.sids = sids;
r.in.level = level;
r.in.count = count;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -317,7 +437,15 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.names = names;
r.in.level = level;
r.in.count = count;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -340,7 +468,15 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.handle = handle;
r.in.name = name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATESECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateSecret, (ndr_push_flags_fn_t)ndr_push_lsa_CreateSecret);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -361,7 +497,15 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.handle = handle;
r.in.sid = sid;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenAccount, (ndr_push_flags_fn_t)ndr_push_lsa_OpenAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -380,7 +524,15 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMPRIVSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumPrivsAccount, (ndr_push_flags_fn_t)ndr_push_lsa_EnumPrivsAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -400,7 +552,15 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C
/* In parameters */
r.in.handle = handle;
r.in.privs = privs;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ADDPRIVILEGESTOACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_AddPrivilegesToAccount, (ndr_push_flags_fn_t)ndr_push_lsa_AddPrivilegesToAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -420,7 +580,15 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL
r.in.handle = handle;
r.in.remove_all = remove_all;
r.in.privs = privs;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_REMOVEPRIVILEGESFROMACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RemovePrivilegesFromAccount, (ndr_push_flags_fn_t)ndr_push_lsa_RemovePrivilegesFromAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -437,7 +605,15 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETQUOTASFORACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetQuotasForAccount, (ndr_push_flags_fn_t)ndr_push_lsa_GetQuotasForAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -454,7 +630,15 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETQUOTASFORACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetQuotasForAccount, (ndr_push_flags_fn_t)ndr_push_lsa_SetQuotasForAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -471,7 +655,15 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETSYSTEMACCESSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetSystemAccessAccount, (ndr_push_flags_fn_t)ndr_push_lsa_GetSystemAccessAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -488,7 +680,15 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSYSTEMACCESSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSystemAccessAccount, (ndr_push_flags_fn_t)ndr_push_lsa_SetSystemAccessAccount);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -508,7 +708,15 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.handle = handle;
r.in.sid = sid;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENTRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_OpenTrustedDomain);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -528,7 +736,15 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C
/* In parameters */
r.in.trustdom_handle = trustdom_handle;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfo, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -546,7 +762,15 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TAL
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFORMATIONTRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInformationTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_SetInformationTrustedDomain);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -566,7 +790,15 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.handle = handle;
r.in.name = name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenSecret, (ndr_push_flags_fn_t)ndr_push_lsa_OpenSecret);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -587,7 +819,15 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.sec_handle = sec_handle;
r.in.new_val = new_val;
r.in.old_val = old_val;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSecret, (ndr_push_flags_fn_t)ndr_push_lsa_SetSecret);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -609,7 +849,15 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.new_mtime = new_mtime;
r.in.old_val = old_val;
r.in.old_mtime = old_mtime;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QuerySecret, (ndr_push_flags_fn_t)ndr_push_lsa_QuerySecret);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -632,7 +880,15 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem
/* In parameters */
r.in.handle = handle;
r.in.name = name;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivValue, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivValue);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -652,7 +908,15 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
/* In parameters */
r.in.handle = handle;
r.in.luid = luid;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivName, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -674,7 +938,15 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT
r.in.name = name;
r.in.language_id = language_id;
r.in.unknown = unknown;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVDISPLAYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivDisplayName, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivDisplayName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -693,7 +965,15 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETEOBJECT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_DeleteObject, (ndr_push_flags_fn_t)ndr_push_lsa_DeleteObject);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -712,7 +992,15 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO
/* In parameters */
r.in.handle = handle;
r.in.name = name;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTSWITHUSERRIGHT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccountsWithUserRight, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccountsWithUserRight);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -732,7 +1020,15 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m
/* In parameters */
r.in.handle = handle;
r.in.sid = sid;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccountRights);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -753,7 +1049,15 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.handle = handle;
r.in.sid = sid;
r.in.rights = rights;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ADDACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_AddAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_AddAccountRights);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -774,7 +1078,15 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.sid = sid;
r.in.unknown = unknown;
r.in.rights = rights;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_REMOVEACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RemoveAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_RemoveAccountRights);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -794,7 +1106,15 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL
r.in.handle = handle;
r.in.dom_sid = dom_sid;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFOBYSID, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfoBySid, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfoBySid);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -812,7 +1132,15 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETTRUSTEDDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetTrustedDomainInfo, (ndr_push_flags_fn_t)ndr_push_lsa_SetTrustedDomainInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -831,7 +1159,15 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX
/* In parameters */
r.in.handle = handle;
r.in.dom_sid = dom_sid;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETETRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_DeleteTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_DeleteTrustedDomain);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -848,7 +1184,15 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *me
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_STOREPRIVATEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_StorePrivateData, (ndr_push_flags_fn_t)ndr_push_lsa_StorePrivateData);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -865,7 +1209,15 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_RETRIEVEPRIVATEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RetrievePrivateData, (ndr_push_flags_fn_t)ndr_push_lsa_RetrievePrivateData);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -885,7 +1237,15 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.attr = attr;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_OpenPolicy2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -906,7 +1266,15 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.system_name = system_name;
r.in.account_name = account_name;
r.in.authority_name = authority_name;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_GetUserName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETUSERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetUserName, (ndr_push_flags_fn_t)ndr_push_lsa_GetUserName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -927,7 +1295,15 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me
/* In parameters */
r.in.handle = handle;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYINFOPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryInfoPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_QueryInfoPolicy2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -945,7 +1321,15 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFOPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInfoPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_SetInfoPolicy2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -965,7 +1349,15 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA
r.in.handle = handle;
r.in.trusted_domain = trusted_domain;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFOBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfoByName, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfoByName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -987,7 +1379,15 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL
r.in.trusted_domain = trusted_domain;
r.in.level = level;
r.in.info = info;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETTRUSTEDDOMAININFOBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetTrustedDomainInfoByName, (ndr_push_flags_fn_t)ndr_push_lsa_SetTrustedDomainInfoByName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1007,7 +1407,15 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.handle = handle;
r.in.resume_handle = resume_handle;
r.in.max_size = max_size;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMTRUSTEDDOMAINSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumTrustedDomainsEx, (ndr_push_flags_fn_t)ndr_push_lsa_EnumTrustedDomainsEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1026,7 +1434,15 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CT
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAINEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomainEx, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomainEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1044,7 +1460,15 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLOSETRUSTEDDOMAINEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CloseTrustedDomainEx, (ndr_push_flags_fn_t)ndr_push_lsa_CloseTrustedDomainEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1064,7 +1488,15 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA
/* In parameters */
r.in.handle = handle;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYDOMAININFORMATIONPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryDomainInformationPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_QueryDomainInformationPolicy);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1085,7 +1517,15 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL
r.in.handle = handle;
r.in.level = level;
r.in.info = info;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETDOMAININFORMATIONPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetDomainInformationPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_SetDomainInformationPolicy);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1105,7 +1545,15 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_
r.in.handle = handle;
r.in.name = name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENTRUSTEDDOMAINBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenTrustedDomainByName, (ndr_push_flags_fn_t)ndr_push_lsa_OpenTrustedDomainByName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1123,7 +1571,15 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_TestCall, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_TESTCALL, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_TestCall, (ndr_push_flags_fn_t)ndr_push_lsa_TestCall);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_TestCall, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1147,7 +1603,15 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.count = count;
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids2, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1175,7 +1639,15 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.count = count;
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames2, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1195,7 +1667,15 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAINEX2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomainEx2, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomainEx2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1212,7 +1692,15 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRWRITE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRWRITE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRWRITE);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1229,7 +1717,15 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRREAD, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRREAD, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRREAD);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1246,7 +1742,15 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRENUMERATE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRENUMERATE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRENUMERATE);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1263,7 +1767,15 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TAL
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRWRITEDOMAINCREDENTIALS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRWRITEDOMAINCREDENTIALS, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRWRITEDOMAINCREDENTIALS);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1280,7 +1792,15 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALL
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRREADDOMAINCREDENTIALS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRREADDOMAINCREDENTIALS, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRREADDOMAINCREDENTIALS);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1297,7 +1817,15 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRDELETE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRDELETE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRDELETE);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1314,7 +1842,15 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRGETTARGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRGETTARGETINFO, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRGETTARGETINFO);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1331,7 +1867,15 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX *
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRPROFILELOADED, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRPROFILELOADED, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRPROFILELOADED);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1356,7 +1900,15 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.count = count;
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES3, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames3, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames3);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1376,7 +1928,15 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRGETSESSIONTYPES, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRGETSESSIONTYPES, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRGETSESSIONTYPES);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1393,7 +1953,15 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARREGISTERAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARREGISTERAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARREGISTERAUDITEVENT);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1410,7 +1978,15 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARGENAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARGENAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARGENAUDITEVENT);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1427,7 +2003,15 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARUNREGISTERAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARUNREGISTERAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARUNREGISTERAUDITEVENT);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1444,7 +2028,15 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARQUERYFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARQUERYFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_lsa_LSARQUERYFORESTTRUSTINFORMATION);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1461,7 +2053,15 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARSETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARSETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_lsa_LSARSETFORESTTRUSTINFORMATION);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1478,7 +2078,15 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRRENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRRENAME, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRRENAME);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1501,7 +2109,15 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.count = count;
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS3, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids3, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids3);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1528,7 +2144,15 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.count = count;
r.in.unknown1 = unknown1;
r.in.unknown2 = unknown2;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES4, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames4, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames4);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1548,7 +2172,15 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSAROPENPOLICYSCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSAROPENPOLICYSCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSAROPENPOLICYSCE);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1565,7 +2197,15 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTREGISTERSECURITYEVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTREGISTERSECURITYEVENTSOURCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTREGISTERSECURITYEVENTSOURCE);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1582,7 +2222,15 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1599,7 +2247,15 @@ NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALL
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTREPORTSECURITYEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTREPORTSECURITYEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTREPORTSECURITYEVENT);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_netlogon.c b/source3/librpc/gen_ndr/cli_netlogon.c
index ee9839e58e..6985d025a9 100644
--- a/source3/librpc/gen_ndr/cli_netlogon.c
+++ b/source3/librpc/gen_ndr/cli_netlogon.c
@@ -15,7 +15,15 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.server_name = server_name;
r.in.account_name = account_name;
r.in.workstation = workstation;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONUASLOGON, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonUasLogon, (ndr_push_flags_fn_t)ndr_push_netr_LogonUasLogon);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -36,7 +44,15 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.server_name = server_name;
r.in.account_name = account_name;
r.in.workstation = workstation;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONUASLOGOFF, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonUasLogoff, (ndr_push_flags_fn_t)ndr_push_netr_LogonUasLogoff);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -61,7 +77,15 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.logon_level = logon_level;
r.in.logon = logon;
r.in.validation_level = validation_level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGON, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogon, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogon);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -87,7 +111,15 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.return_authenticator = return_authenticator;
r.in.logon_level = logon_level;
r.in.logon = logon;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGOFF, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogoff, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogoff);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -108,7 +140,15 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.server_name = server_name;
r.in.computer_name = computer_name;
r.in.credentials = credentials;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERREQCHALLENGE, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerReqChallenge, (ndr_push_flags_fn_t)ndr_push_netr_ServerReqChallenge);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -131,7 +171,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.secure_channel_type = secure_channel_type;
r.in.computer_name = computer_name;
r.in.credentials = credentials;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -155,7 +203,15 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.computer_name = computer_name;
r.in.credential = credential;
r.in.new_password = new_password;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERPASSWORDSET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerPasswordSet, (ndr_push_flags_fn_t)ndr_push_netr_ServerPasswordSet);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -180,7 +236,15 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.database_id = database_id;
r.in.sequence_num = sequence_num;
r.in.preferredmaximumlength = preferredmaximumlength;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASEDELTAS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseDeltas, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseDeltas);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -207,7 +271,15 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.database_id = database_id;
r.in.sync_context = sync_context;
r.in.preferredmaximumlength = preferredmaximumlength;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseSync, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASESYNC, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseSync, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseSync);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -235,7 +307,15 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.count = count;
r.in.level = level;
r.in.buffersize = buffersize;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_AccountDeltas, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_ACCOUNTDELTAS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_AccountDeltas, (ndr_push_flags_fn_t)ndr_push_netr_AccountDeltas);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -265,7 +345,15 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.level = level;
r.in.buffersize = buffersize;
r.in.recordid = recordid;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_AccountSync, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_ACCOUNTSYNC, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_AccountSync, (ndr_push_flags_fn_t)ndr_push_netr_AccountSync);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_AccountSync, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -290,7 +378,15 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.logon_server = logon_server;
r.in.domainname = domainname;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_GetDcName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_GETDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_GetDcName, (ndr_push_flags_fn_t)ndr_push_netr_GetDcName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_GetDcName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -311,7 +407,15 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.logon_server = logon_server;
r.in.function_code = function_code;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonControl, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonControl, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -331,7 +435,15 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.logon_server = logon_server;
r.in.domainname = domainname;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_GETANYDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_GetAnyDCName, (ndr_push_flags_fn_t)ndr_push_netr_GetAnyDCName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -353,7 +465,15 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.function_code = function_code;
r.in.level = level;
r.in.data = data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonControl2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl2, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonControl2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -377,7 +497,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.computer_name = computer_name;
r.in.credentials = credentials;
r.in.negotiate_flags = negotiate_flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate2, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -404,7 +532,15 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
r.in.restart_state = restart_state;
r.in.sync_context = sync_context;
r.in.preferredmaximumlength = preferredmaximumlength;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASESYNC2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseSync2, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseSync2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -430,7 +566,15 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.return_authenticator = return_authenticator;
r.in.change_log_entry = change_log_entry;
r.in.change_log_entry_size = change_log_entry_size;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASEREDO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseRedo, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseRedo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -453,7 +597,15 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.function_code = function_code;
r.in.level = level;
r.in.data = data;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL2EX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl2Ex, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl2Ex);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -471,7 +623,15 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TA
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRENUMERATETRUSTEDDOMAINS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRENUMERATETRUSTEDDOMAINS, (ndr_push_flags_fn_t)ndr_push_netr_NETRENUMERATETRUSTEDDOMAINS);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -493,7 +653,15 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.domain_guid = domain_guid;
r.in.site_guid = site_guid;
r.in.flags = flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCName, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -511,7 +679,15 @@ NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONDUMMYROUTINE1, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONDUMMYROUTINE1, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONDUMMYROUTINE1);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -528,7 +704,15 @@ NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONSETSERVICEBITS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONSETSERVICEBITS, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONSETSERVICEBITS);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -545,7 +729,15 @@ NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CT
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONGETTRUSTRID, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONGETTRUSTRID, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONGETTRUSTRID);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -562,7 +754,15 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, T
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONCOMPUTESERVERDIGEST, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONCOMPUTESERVERDIGEST, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONCOMPUTESERVERDIGEST);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -579,7 +779,15 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, T
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONCOMPUTECLIENTDIGEST, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONCOMPUTECLIENTDIGEST, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONCOMPUTECLIENTDIGEST);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -602,7 +810,15 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.computer_name = computer_name;
r.in.credentials = credentials;
r.in.negotiate_flags = negotiate_flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE3, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate3, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate3);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -627,7 +843,15 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem
r.in.domain_guid = domain_guid;
r.in.site_name = site_name;
r.in.flags = flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAMEEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCNameEx, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCNameEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -646,7 +870,15 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem
/* In parameters */
r.in.computer_name = computer_name;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETSITENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetSiteName, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetSiteName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -670,7 +902,15 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.return_authenticator = return_authenticator;
r.in.level = level;
r.in.query = query;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONGETDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonGetDomainInfo, (ndr_push_flags_fn_t)ndr_push_netr_LogonGetDomainInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -695,7 +935,15 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.computer_name = computer_name;
r.in.credential = credential;
r.in.new_password = new_password;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERPASSWORDSET2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerPasswordSet2, (ndr_push_flags_fn_t)ndr_push_netr_ServerPasswordSet2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -713,7 +961,15 @@ NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERPASSWORDGET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERPASSWORDGET, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERPASSWORDGET);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -730,7 +986,15 @@ NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONSENDTOSAM, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONSENDTOSAM, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONSENDTOSAM);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -747,7 +1011,15 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRADDRESSTOSITENAMESW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRADDRESSTOSITENAMESW, (ndr_push_flags_fn_t)ndr_push_netr_DSRADDRESSTOSITENAMESW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -771,7 +1043,15 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.domain_guid = domain_guid;
r.in.site_name = site_name;
r.in.flags = flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAMEEX2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCNameEx2, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCNameEx2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -789,7 +1069,15 @@ NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -806,7 +1094,15 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli,
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRENUMERATETRUSTEDDOMAINSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRENUMERATETRUSTEDDOMAINSEX, (ndr_push_flags_fn_t)ndr_push_netr_NETRENUMERATETRUSTEDDOMAINSEX);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -823,7 +1119,15 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRADDRESSTOSITENAMESEXW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRADDRESSTOSITENAMESEXW, (ndr_push_flags_fn_t)ndr_push_netr_DSRADDRESSTOSITENAMESEXW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -840,7 +1144,15 @@ NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCSITECOVERAGEW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRGETDCSITECOVERAGEW, (ndr_push_flags_fn_t)ndr_push_netr_DSRGETDCSITECOVERAGEW);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -863,7 +1175,15 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me
r.in.logon = logon;
r.in.validation_level = validation_level;
r.in.flags = flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGONEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogonEx, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogonEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -885,7 +1205,15 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO
/* In parameters */
r.in.server_name = server_name;
r.in.trust_flags = trust_flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRENUMERATEDOMAINTRUSTS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsrEnumerateDomainTrusts, (ndr_push_flags_fn_t)ndr_push_netr_DsrEnumerateDomainTrusts);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -904,7 +1232,15 @@ NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TA
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRDEREGISTERDNSHOSTRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRDEREGISTERDNSHOSTRECORDS, (ndr_push_flags_fn_t)ndr_push_netr_DSRDEREGISTERDNSHOSTRECORDS);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -921,7 +1257,15 @@ NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TA
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERTRUSTPASSWORDSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERTRUSTPASSWORDSGET, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERTRUSTPASSWORDSGET);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -938,7 +1282,15 @@ NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRGETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_netr_DSRGETFORESTTRUSTINFORMATION);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -955,7 +1307,15 @@ NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRGETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRGETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_netr_NETRGETFORESTTRUSTINFORMATION);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -980,7 +1340,15 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_
r.in.logon = logon;
r.in.validation_level = validation_level;
r.in.flags = flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGONWITHFLAGS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogonWithFlags, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogonWithFlags);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -1001,7 +1369,15 @@ NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERGETTRUSTINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERGETTRUSTINFO, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERGETTRUSTINFO);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
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;
}
diff --git a/source3/librpc/gen_ndr/cli_winreg.c b/source3/librpc/gen_ndr/cli_winreg.c
index 0dd7dcd035..5ef93d3a92 100644
--- a/source3/librpc/gen_ndr/cli_winreg.c
+++ b/source3/librpc/gen_ndr/cli_winreg.c
@@ -14,7 +14,15 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCR, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCR, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCR);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -34,7 +42,15 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCU, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCU, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCU);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -54,7 +70,15 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKLM, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKLM, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKLM);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -74,7 +98,15 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPD, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPD, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPD);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -94,7 +126,15 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKU, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKU, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKU, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKU);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -113,7 +153,15 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_CloseKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_CLOSEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_CloseKey, (ndr_push_flags_fn_t)ndr_push_winreg_CloseKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_CloseKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -138,7 +186,15 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.access_mask = access_mask;
r.in.secdesc = secdesc;
r.in.action_taken = action_taken;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_CreateKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_CREATEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_CreateKey, (ndr_push_flags_fn_t)ndr_push_winreg_CreateKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_CreateKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -159,7 +215,15 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
/* In parameters */
r.in.handle = handle;
r.in.key = key;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_DeleteKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_DELETEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_DeleteKey, (ndr_push_flags_fn_t)ndr_push_winreg_DeleteKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -178,7 +242,15 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
/* In parameters */
r.in.handle = handle;
r.in.value = value;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_DeleteValue, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_DELETEVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_DeleteValue, (ndr_push_flags_fn_t)ndr_push_winreg_DeleteValue);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -200,7 +272,15 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.name = name;
r.in.keyclass = keyclass;
r.in.last_changed_time = last_changed_time;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_EnumKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ENUMKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_EnumKey, (ndr_push_flags_fn_t)ndr_push_winreg_EnumKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_EnumKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -227,7 +307,15 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
r.in.value = value;
r.in.size = size;
r.in.length = length;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ENUMVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_EnumValue, (ndr_push_flags_fn_t)ndr_push_winreg_EnumValue);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_EnumValue, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -250,7 +338,15 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_FlushKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_FLUSHKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_FlushKey, (ndr_push_flags_fn_t)ndr_push_winreg_FlushKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_FlushKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -270,7 +366,15 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.handle = handle;
r.in.sec_info = sec_info;
r.in.sd = sd;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_GETKEYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_GetKeySecurity, (ndr_push_flags_fn_t)ndr_push_winreg_GetKeySecurity);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -291,7 +395,15 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.handle = handle;
r.in.keyname = keyname;
r.in.filename = filename;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_LoadKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_LOADKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_LoadKey, (ndr_push_flags_fn_t)ndr_push_winreg_LoadKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_LoadKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -315,7 +427,15 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_
r.in.string1 = string1;
r.in.string2 = string2;
r.in.unknown2 = unknown2;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_NOTIFYCHANGEKEYVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_NotifyChangeKeyValue, (ndr_push_flags_fn_t)ndr_push_winreg_NotifyChangeKeyValue);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -336,7 +456,15 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
r.in.keyname = keyname;
r.in.unknown = unknown;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenKey, (ndr_push_flags_fn_t)ndr_push_winreg_OpenKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -356,7 +484,15 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem
/* In parameters */
r.in.handle = handle;
r.in.class_in = class_in;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYINFOKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryInfoKey, (ndr_push_flags_fn_t)ndr_push_winreg_QueryInfoKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -388,7 +524,15 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
r.in.data = data;
r.in.size = size;
r.in.length = length;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryValue, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryValue, (ndr_push_flags_fn_t)ndr_push_winreg_QueryValue);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryValue, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -409,7 +553,15 @@ NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_REPLACEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_ReplaceKey, (ndr_push_flags_fn_t)ndr_push_winreg_ReplaceKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -426,7 +578,15 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_RestoreKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_RESTOREKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_RestoreKey, (ndr_push_flags_fn_t)ndr_push_winreg_RestoreKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -443,7 +603,15 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx)
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SaveKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SAVEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SaveKey, (ndr_push_flags_fn_t)ndr_push_winreg_SaveKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SaveKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -463,7 +631,15 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m
r.in.handle = handle;
r.in.access_mask = access_mask;
r.in.sd = sd;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SETKEYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SetKeySecurity, (ndr_push_flags_fn_t)ndr_push_winreg_SetKeySecurity);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -486,7 +662,15 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
r.in.type = type;
r.in.data = data;
r.in.size = size;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SetValue, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SETVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SetValue, (ndr_push_flags_fn_t)ndr_push_winreg_SetValue);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SetValue, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -503,7 +687,15 @@ NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_UNLOADKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_UnLoadKey, (ndr_push_flags_fn_t)ndr_push_winreg_UnLoadKey);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -525,7 +717,15 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO
r.in.timeout = timeout;
r.in.force_apps = force_apps;
r.in.reboot = reboot;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_INITIATESYSTEMSHUTDOWN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_InitiateSystemShutdown, (ndr_push_flags_fn_t)ndr_push_winreg_InitiateSystemShutdown);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -543,7 +743,15 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C
/* In parameters */
r.in.server = server;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ABORTSYSTEMSHUTDOWN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_AbortSystemShutdown, (ndr_push_flags_fn_t)ndr_push_winreg_AbortSystemShutdown);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -561,7 +769,15 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
/* In parameters */
r.in.handle = handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_GetVersion, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_GETVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_GetVersion, (ndr_push_flags_fn_t)ndr_push_winreg_GetVersion);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_GetVersion, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -581,7 +797,15 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCC, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCC, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCC);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -601,7 +825,15 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKDD, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKDD, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKDD);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -624,7 +856,15 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C
r.in.num_values = num_values;
r.in.buffer = buffer;
r.in.buffer_size = buffer_size;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYMULTIPLEVALUES, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryMultipleValues, (ndr_push_flags_fn_t)ndr_push_winreg_QueryMultipleValues);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -650,7 +890,15 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL
r.in.force_apps = force_apps;
r.in.reboot = reboot;
r.in.reason = reason;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_INITIATESYSTEMSHUTDOWNEX, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_InitiateSystemShutdownEx, (ndr_push_flags_fn_t)ndr_push_winreg_InitiateSystemShutdownEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -667,7 +915,15 @@ NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SAVEKEYEX, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SaveKeyEx, (ndr_push_flags_fn_t)ndr_push_winreg_SaveKeyEx);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -686,7 +942,15 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPT, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPT, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPT);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -706,7 +970,15 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx
/* In parameters */
r.in.system_name = system_name;
r.in.access_mask = access_mask;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPN, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPN);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -724,7 +996,15 @@ NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYMULTIPLEVALUES2, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryMultipleValues2, (ndr_push_flags_fn_t)ndr_push_winreg_QueryMultipleValues2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/cli_wkssvc.c b/source3/librpc/gen_ndr/cli_wkssvc.c
index f25987550b..998b85b87e 100644
--- a/source3/librpc/gen_ndr/cli_wkssvc.c
+++ b/source3/librpc/gen_ndr/cli_wkssvc.c
@@ -14,7 +14,15 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
/* In parameters */
r.in.server_name = server_name;
r.in.level = level;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaGetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaGetInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -36,7 +44,15 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.level = level;
r.in.info = info;
r.in.parm_error = parm_error;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTASETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaSetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaSetInfo);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -59,7 +75,15 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.users = users;
r.in.prefmaxlen = prefmaxlen;
r.in.resumehandle = resumehandle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAENUMUSERS, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaEnumUsers, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaEnumUsers);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -80,7 +104,15 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERGETINFO(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERGETINFO);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -97,7 +129,15 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTAUSERSETINFO(struct rpc_pipe_client *cli, TALLOC_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERSETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERSETINFO);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -119,7 +159,15 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC
r.in.ctr = ctr;
r.in.max_buffer = max_buffer;
r.in.resume_handle = resume_handle;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTATRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaTransportEnum, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaTransportEnum);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -140,7 +188,15 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTADD(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTADD);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -157,7 +213,15 @@ NTSTATUS rpccli_WKSSVC_NETRWKSTATRANSPORTDEL(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTDEL);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -174,7 +238,15 @@ NTSTATUS rpccli_WKSSVC_NETRUSEADD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEADD, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEADD);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEADD, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -191,7 +263,15 @@ NTSTATUS rpccli_WKSSVC_NETRUSEGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEGETINFO, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEGETINFO);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEGETINFO, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -208,7 +288,15 @@ NTSTATUS rpccli_WKSSVC_NETRUSEDEL(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEDEL, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEDEL);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEDEL, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -225,7 +313,15 @@ NTSTATUS rpccli_WKSSVC_NETRUSEENUM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEENUM, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEENUM, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEENUM);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEENUM, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -242,7 +338,15 @@ NTSTATUS rpccli_WKSSVC_NETRMESSAGEBUFFERSEND(struct rpc_pipe_client *cli, TALLOC
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRMESSAGEBUFFERSEND, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRMESSAGEBUFFERSEND, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRMESSAGEBUFFERSEND);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -259,7 +363,15 @@ NTSTATUS rpccli_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct rpc_pipe_client *cli,
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWORKSTATIONSTATISTICSGET, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWORKSTATIONSTATISTICSGET);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -276,7 +388,15 @@ NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEADD(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEADD);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -293,7 +413,15 @@ NTSTATUS rpccli_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEDEL);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -310,7 +438,15 @@ NTSTATUS rpccli_WKSSVC_NETRJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX *m
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRJOINDOMAIN, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRJOINDOMAIN);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRJOINDOMAIN, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -327,7 +463,15 @@ NTSTATUS rpccli_WKSSVC_NETRUNJOINDOMAIN(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUNJOINDOMAIN, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUNJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUNJOINDOMAIN);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUNJOINDOMAIN, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -344,7 +488,15 @@ NTSTATUS rpccli_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct rpc_pipe_client *cli, TA
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRRENAMEMACHINEINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRRENAMEMACHINEINDOMAIN);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -361,7 +513,15 @@ NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRVALIDATENAME, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -378,7 +538,15 @@ NTSTATUS rpccli_WKSSVC_NETRGETJOININFORMATION(struct rpc_pipe_client *cli, TALLO
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOININFORMATION, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOININFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOININFORMATION, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOININFORMATION);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOININFORMATION, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -395,7 +563,15 @@ NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS(struct rpc_pipe_client *cli, TALLOC_CT
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOINABLEOUS, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -418,7 +594,15 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX *
r.in.admin_account = admin_account;
r.in.encrypted_password = encrypted_password;
r.in.join_flags = join_flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrJoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrJoinDomain2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -439,7 +623,15 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX
r.in.account = account;
r.in.encrypted_password = encrypted_password;
r.in.unjoin_flags = unjoin_flags;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrUnjoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrUnjoinDomain2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -461,7 +653,15 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T
r.in.Account = Account;
r.in.EncryptedPassword = EncryptedPassword;
r.in.RenameOptions = RenameOptions;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRenameMachineInDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRenameMachineInDomain2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -478,7 +678,15 @@ NTSTATUS rpccli_WKSSVC_NETRVALIDATENAME2(struct rpc_pipe_client *cli, TALLOC_CTX
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRVALIDATENAME2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -495,7 +703,15 @@ NTSTATUS rpccli_WKSSVC_NETRGETJOINABLEOUS2(struct rpc_pipe_client *cli, TALLOC_C
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS2);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -517,7 +733,15 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli,
r.in.Account = Account;
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrAddAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrAddAlternateComputerName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -539,7 +763,15 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c
r.in.Account = Account;
r.in.EncryptedPassword = EncryptedPassword;
r.in.Reserved = Reserved;
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRemoveAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRemoveAlternateComputerName);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -556,7 +788,15 @@ NTSTATUS rpccli_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct rpc_pipe_client *cli, T
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRSETPRIMARYCOMPUTERNAME);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
@@ -573,7 +813,15 @@ NTSTATUS rpccli_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct rpc_pipe_client *cli, T
NTSTATUS status;
/* In parameters */
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
+
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRENUMERATECOMPUTERNAMES, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRENUMERATECOMPUTERNAMES);
+
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
+
if (NT_STATUS_IS_ERR(status)) {
return status;
}
diff --git a/source3/librpc/gen_ndr/srv_dfs.c b/source3/librpc/gen_ndr/srv_dfs.c
index bb27ab021f..a4da9fbe06 100644
--- a/source3/librpc/gen_ndr/srv_dfs.c
+++ b/source3/librpc/gen_ndr/srv_dfs.c
@@ -31,6 +31,9 @@ static BOOL api_dfs_GetManagerVersion(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
+
ZERO_STRUCT(r.out);
r.out.exist_flag = talloc_size(mem_ctx, sizeof(*r.out.exist_flag));
if (r.out.exist_flag == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_dfs_GetManagerVersion(pipes_struct *p)
_dfs_GetManagerVersion(p, r.out.exist_flag);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,8 +94,14 @@ static BOOL api_dfs_Add(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Add, &r);
+
r.out.result = _dfs_Add(p, r.in.path, r.in.server, r.in.share, r.in.comment, r.in.flags);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Add, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -138,8 +150,14 @@ static BOOL api_dfs_Remove(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
+
r.out.result = _dfs_Remove(p, r.in.path, r.in.server, r.in.share);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Remove, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -188,8 +206,14 @@ static BOOL api_dfs_SetInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
+
r.out.result = _dfs_SetInfo(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -238,6 +262,9 @@ static BOOL api_dfs_GetInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -247,6 +274,9 @@ static BOOL api_dfs_GetInfo(pipes_struct *p)
r.out.result = _dfs_GetInfo(p, r.in.path, r.in.server, r.in.share, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -295,11 +325,17 @@ static BOOL api_dfs_Enum(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Enum, &r);
+
ZERO_STRUCT(r.out);
r.out.info = r.in.info;
r.out.total = r.in.total;
r.out.result = _dfs_Enum(p, r.in.level, r.in.bufsize, r.in.info, r.in.unknown, r.in.total);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Enum, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -348,8 +384,14 @@ static BOOL api_dfs_Rename(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
+
r.out.result = _dfs_Rename(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Rename, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -398,8 +440,14 @@ static BOOL api_dfs_Move(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Move, &r);
+
r.out.result = _dfs_Move(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Move, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -448,8 +496,14 @@ static BOOL api_dfs_ManagerGetConfigInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
+
r.out.result = _dfs_ManagerGetConfigInfo(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -498,8 +552,14 @@ static BOOL api_dfs_ManagerSendSiteInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
+
r.out.result = _dfs_ManagerSendSiteInfo(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -548,8 +608,14 @@ static BOOL api_dfs_AddFtRoot(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
+
r.out.result = _dfs_AddFtRoot(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -598,8 +664,14 @@ static BOOL api_dfs_RemoveFtRoot(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
+
r.out.result = _dfs_RemoveFtRoot(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -648,8 +720,14 @@ static BOOL api_dfs_AddStdRoot(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
+
r.out.result = _dfs_AddStdRoot(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -698,8 +776,14 @@ static BOOL api_dfs_RemoveStdRoot(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
+
r.out.result = _dfs_RemoveStdRoot(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -748,8 +832,14 @@ static BOOL api_dfs_ManagerInitialize(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
+
r.out.result = _dfs_ManagerInitialize(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -798,8 +888,14 @@ static BOOL api_dfs_AddStdRootForced(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
+
r.out.result = _dfs_AddStdRootForced(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -848,8 +944,14 @@ static BOOL api_dfs_GetDcAddress(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
+
r.out.result = _dfs_GetDcAddress(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -898,8 +1000,14 @@ static BOOL api_dfs_SetDcAddress(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
+
r.out.result = _dfs_SetDcAddress(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -948,8 +1056,14 @@ static BOOL api_dfs_FlushFtTable(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
+
r.out.result = _dfs_FlushFtTable(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -998,8 +1112,14 @@ static BOOL api_dfs_Add2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
+
r.out.result = _dfs_Add2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Add2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1048,8 +1168,14 @@ static BOOL api_dfs_Remove2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
+
r.out.result = _dfs_Remove2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1098,11 +1224,17 @@ static BOOL api_dfs_EnumEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r);
+
ZERO_STRUCT(r.out);
r.out.info = r.in.info;
r.out.total = r.in.total;
r.out.result = _dfs_EnumEx(p, r.in.name, r.in.level, r.in.bufsize, r.in.info, r.in.total);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1151,8 +1283,14 @@ static BOOL api_dfs_SetInfo2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
+
r.out.result = _dfs_SetInfo2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_echo.c b/source3/librpc/gen_ndr/srv_echo.c
index 578760358e..5a313003ea 100644
--- a/source3/librpc/gen_ndr/srv_echo.c
+++ b/source3/librpc/gen_ndr/srv_echo.c
@@ -31,6 +31,9 @@ static BOOL api_echo_AddOne(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_AddOne, &r);
+
ZERO_STRUCT(r.out);
r.out.out_data = talloc_size(mem_ctx, sizeof(*r.out.out_data));
if (r.out.out_data == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_echo_AddOne(pipes_struct *p)
_echo_AddOne(p, r.in.in_data, r.out.out_data);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_AddOne, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,6 +94,9 @@ static BOOL api_echo_EchoData(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_EchoData, &r);
+
ZERO_STRUCT(r.out);
r.out.out_data = talloc_array_size(mem_ctx, sizeof(*r.out.out_data), r.in.len);
if (r.out.out_data == NULL) {
@@ -97,6 +106,9 @@ static BOOL api_echo_EchoData(pipes_struct *p)
_echo_EchoData(p, r.in.len, r.in.in_data, r.out.out_data);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_EchoData, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -145,8 +157,14 @@ static BOOL api_echo_SinkData(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_SinkData, &r);
+
_echo_SinkData(p, r.in.len, r.in.data);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_SinkData, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -195,6 +213,9 @@ static BOOL api_echo_SourceData(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_SourceData, &r);
+
ZERO_STRUCT(r.out);
r.out.data = talloc_array_size(mem_ctx, sizeof(*r.out.data), r.in.len);
if (r.out.data == NULL) {
@@ -204,6 +225,9 @@ static BOOL api_echo_SourceData(pipes_struct *p)
_echo_SourceData(p, r.in.len, r.out.data);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_SourceData, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -252,6 +276,9 @@ static BOOL api_echo_TestCall(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestCall, &r);
+
ZERO_STRUCT(r.out);
r.out.s2 = talloc_size(mem_ctx, sizeof(*r.out.s2));
if (r.out.s2 == NULL) {
@@ -261,6 +288,9 @@ static BOOL api_echo_TestCall(pipes_struct *p)
_echo_TestCall(p, r.in.s1, r.out.s2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestCall, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -309,6 +339,9 @@ static BOOL api_echo_TestCall2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestCall2, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -318,6 +351,9 @@ static BOOL api_echo_TestCall2(pipes_struct *p)
r.out.result = _echo_TestCall2(p, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestCall2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -366,8 +402,14 @@ static BOOL api_echo_TestSleep(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestSleep, &r);
+
r.out.result = _echo_TestSleep(p, r.in.seconds);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestSleep, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -416,12 +458,18 @@ static BOOL api_echo_TestEnum(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestEnum, &r);
+
ZERO_STRUCT(r.out);
r.out.foo1 = r.in.foo1;
r.out.foo2 = r.in.foo2;
r.out.foo3 = r.in.foo3;
_echo_TestEnum(p, r.in.foo1, r.in.foo2, r.in.foo3);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestEnum, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -470,10 +518,16 @@ static BOOL api_echo_TestSurrounding(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestSurrounding, &r);
+
ZERO_STRUCT(r.out);
r.out.data = r.in.data;
_echo_TestSurrounding(p, r.in.data);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -522,8 +576,14 @@ static BOOL api_echo_TestDoublePointer(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, &r);
+
r.out.result = _echo_TestDoublePointer(p, r.in.data);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_eventlog.c b/source3/librpc/gen_ndr/srv_eventlog.c
index 4f934af26d..ac8126cc6b 100644
--- a/source3/librpc/gen_ndr/srv_eventlog.c
+++ b/source3/librpc/gen_ndr/srv_eventlog.c
@@ -31,8 +31,14 @@ static BOOL api_eventlog_ClearEventLogW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, &r);
+
r.out.result = _eventlog_ClearEventLogW(p, r.in.handle, r.in.unknown);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -81,8 +87,14 @@ static BOOL api_eventlog_BackupEventLogW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, &r);
+
r.out.result = _eventlog_BackupEventLogW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -131,10 +143,16 @@ static BOOL api_eventlog_CloseEventLog(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
r.out.result = _eventlog_CloseEventLog(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -183,8 +201,14 @@ static BOOL api_eventlog_DeregisterEventSource(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, &r);
+
r.out.result = _eventlog_DeregisterEventSource(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -233,6 +257,9 @@ static BOOL api_eventlog_GetNumRecords(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, &r);
+
ZERO_STRUCT(r.out);
r.out.number = talloc_size(mem_ctx, sizeof(*r.out.number));
if (r.out.number == NULL) {
@@ -242,6 +269,9 @@ static BOOL api_eventlog_GetNumRecords(pipes_struct *p)
r.out.result = _eventlog_GetNumRecords(p, r.in.handle, r.out.number);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -290,8 +320,14 @@ static BOOL api_eventlog_GetOldestRecord(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, &r);
+
r.out.result = _eventlog_GetOldestRecord(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -340,8 +376,14 @@ static BOOL api_eventlog_ChangeNotify(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, &r);
+
r.out.result = _eventlog_ChangeNotify(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -390,6 +432,9 @@ static BOOL api_eventlog_OpenEventLogW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -399,6 +444,9 @@ static BOOL api_eventlog_OpenEventLogW(pipes_struct *p)
r.out.result = _eventlog_OpenEventLogW(p, r.in.unknown0, r.in.logname, r.in.servername, r.in.unknown2, r.in.unknown3, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -447,8 +495,14 @@ static BOOL api_eventlog_RegisterEventSourceW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, &r);
+
r.out.result = _eventlog_RegisterEventSourceW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -497,8 +551,14 @@ static BOOL api_eventlog_OpenBackupEventLogW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, &r);
+
r.out.result = _eventlog_OpenBackupEventLogW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -547,6 +607,9 @@ static BOOL api_eventlog_ReadEventLogW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, &r);
+
ZERO_STRUCT(r.out);
r.out.data = talloc_array_size(mem_ctx, sizeof(*r.out.data), r.in.number_of_bytes);
if (r.out.data == NULL) {
@@ -568,6 +631,9 @@ static BOOL api_eventlog_ReadEventLogW(pipes_struct *p)
r.out.result = _eventlog_ReadEventLogW(p, r.in.handle, r.in.flags, r.in.offset, r.in.number_of_bytes, r.out.data, r.out.sent_size, r.out.real_size);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -616,8 +682,14 @@ static BOOL api_eventlog_ReportEventW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, &r);
+
r.out.result = _eventlog_ReportEventW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -666,8 +738,14 @@ static BOOL api_eventlog_ClearEventLogA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, &r);
+
r.out.result = _eventlog_ClearEventLogA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -716,8 +794,14 @@ static BOOL api_eventlog_BackupEventLogA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, &r);
+
r.out.result = _eventlog_BackupEventLogA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -766,8 +850,14 @@ static BOOL api_eventlog_OpenEventLogA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, &r);
+
r.out.result = _eventlog_OpenEventLogA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -816,8 +906,14 @@ static BOOL api_eventlog_RegisterEventSourceA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, &r);
+
r.out.result = _eventlog_RegisterEventSourceA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -866,8 +962,14 @@ static BOOL api_eventlog_OpenBackupEventLogA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, &r);
+
r.out.result = _eventlog_OpenBackupEventLogA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -916,8 +1018,14 @@ static BOOL api_eventlog_ReadEventLogA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, &r);
+
r.out.result = _eventlog_ReadEventLogA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -966,8 +1074,14 @@ static BOOL api_eventlog_ReportEventA(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, &r);
+
r.out.result = _eventlog_ReportEventA(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1016,8 +1130,14 @@ static BOOL api_eventlog_RegisterClusterSvc(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, &r);
+
r.out.result = _eventlog_RegisterClusterSvc(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1066,8 +1186,14 @@ static BOOL api_eventlog_DeregisterClusterSvc(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, &r);
+
r.out.result = _eventlog_DeregisterClusterSvc(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1116,8 +1242,14 @@ static BOOL api_eventlog_WriteClusterEvents(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, &r);
+
r.out.result = _eventlog_WriteClusterEvents(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1166,8 +1298,14 @@ static BOOL api_eventlog_GetLogIntormation(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, &r);
+
r.out.result = _eventlog_GetLogIntormation(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1216,8 +1354,14 @@ static BOOL api_eventlog_FlushEventLog(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, &r);
+
r.out.result = _eventlog_FlushEventLog(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_initshutdown.c b/source3/librpc/gen_ndr/srv_initshutdown.c
index ba7a20a6d5..0bcadf423f 100644
--- a/source3/librpc/gen_ndr/srv_initshutdown.c
+++ b/source3/librpc/gen_ndr/srv_initshutdown.c
@@ -31,8 +31,14 @@ static BOOL api_initshutdown_Init(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
+
r.out.result = _initshutdown_Init(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -81,8 +87,14 @@ static BOOL api_initshutdown_Abort(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
+
r.out.result = _initshutdown_Abort(p, r.in.server);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -131,8 +143,14 @@ static BOOL api_initshutdown_InitEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
+
r.out.result = _initshutdown_InitEx(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot, r.in.reason);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_lsa.c b/source3/librpc/gen_ndr/srv_lsa.c
index 86f41db1bf..fd8ccd5880 100644
--- a/source3/librpc/gen_ndr/srv_lsa.c
+++ b/source3/librpc/gen_ndr/srv_lsa.c
@@ -31,10 +31,16 @@ static BOOL api_lsa_Close(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_Close, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
r.out.result = _lsa_Close(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_Close, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -83,8 +89,14 @@ static BOOL api_lsa_Delete(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_Delete, &r);
+
r.out.result = _lsa_Delete(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_Delete, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -133,6 +145,9 @@ static BOOL api_lsa_EnumPrivs(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &r);
+
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
r.out.privs = talloc_size(mem_ctx, sizeof(*r.out.privs));
@@ -143,6 +158,9 @@ static BOOL api_lsa_EnumPrivs(pipes_struct *p)
r.out.result = _lsa_EnumPrivs(p, r.in.handle, r.in.resume_handle, r.in.max_count, r.out.privs);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -191,6 +209,9 @@ static BOOL api_lsa_QuerySecurity(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r);
+
ZERO_STRUCT(r.out);
r.out.sdbuf = talloc_size(mem_ctx, sizeof(*r.out.sdbuf));
if (r.out.sdbuf == NULL) {
@@ -200,6 +221,9 @@ static BOOL api_lsa_QuerySecurity(pipes_struct *p)
r.out.result = _lsa_QuerySecurity(p, r.in.handle, r.in.sec_info, r.out.sdbuf);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -248,8 +272,14 @@ static BOOL api_lsa_SetSecObj(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r);
+
r.out.result = _lsa_SetSecObj(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -298,8 +328,14 @@ static BOOL api_lsa_ChangePassword(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r);
+
r.out.result = _lsa_ChangePassword(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -348,6 +384,9 @@ static BOOL api_lsa_OpenPolicy(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -357,6 +396,9 @@ static BOOL api_lsa_OpenPolicy(pipes_struct *p)
r.out.result = _lsa_OpenPolicy(p, r.in.system_name, r.in.attr, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -405,6 +447,9 @@ static BOOL api_lsa_QueryInfoPolicy(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -414,6 +459,9 @@ static BOOL api_lsa_QueryInfoPolicy(pipes_struct *p)
r.out.result = _lsa_QueryInfoPolicy(p, r.in.handle, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -462,8 +510,14 @@ static BOOL api_lsa_SetInfoPolicy(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r);
+
r.out.result = _lsa_SetInfoPolicy(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -512,8 +566,14 @@ static BOOL api_lsa_ClearAuditLog(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r);
+
r.out.result = _lsa_ClearAuditLog(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -562,6 +622,9 @@ static BOOL api_lsa_CreateAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r);
+
ZERO_STRUCT(r.out);
r.out.acct_handle = talloc_size(mem_ctx, sizeof(*r.out.acct_handle));
if (r.out.acct_handle == NULL) {
@@ -571,6 +634,9 @@ static BOOL api_lsa_CreateAccount(pipes_struct *p)
r.out.result = _lsa_CreateAccount(p, r.in.handle, r.in.sid, r.in.access_mask, r.out.acct_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -619,6 +685,9 @@ static BOOL api_lsa_EnumAccounts(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &r);
+
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
r.out.sids = talloc_size(mem_ctx, sizeof(*r.out.sids));
@@ -629,6 +698,9 @@ static BOOL api_lsa_EnumAccounts(pipes_struct *p)
r.out.result = _lsa_EnumAccounts(p, r.in.handle, r.in.resume_handle, r.in.num_entries, r.out.sids);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -677,6 +749,9 @@ static BOOL api_lsa_CreateTrustedDomain(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r);
+
ZERO_STRUCT(r.out);
r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
@@ -686,6 +761,9 @@ static BOOL api_lsa_CreateTrustedDomain(pipes_struct *p)
r.out.result = _lsa_CreateTrustedDomain(p, r.in.handle, r.in.info, r.in.access_mask, r.out.trustdom_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -734,6 +812,9 @@ static BOOL api_lsa_EnumTrustDom(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &r);
+
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
@@ -744,6 +825,9 @@ static BOOL api_lsa_EnumTrustDom(pipes_struct *p)
r.out.result = _lsa_EnumTrustDom(p, r.in.handle, r.in.resume_handle, r.in.max_size, r.out.domains);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -792,6 +876,9 @@ static BOOL api_lsa_LookupNames(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -803,6 +890,9 @@ static BOOL api_lsa_LookupNames(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupNames(p, r.in.handle, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -851,6 +941,9 @@ static BOOL api_lsa_LookupSids(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -862,6 +955,9 @@ static BOOL api_lsa_LookupSids(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupSids(p, r.in.handle, r.in.sids, r.out.domains, r.in.names, r.in.level, r.in.count);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -910,6 +1006,9 @@ static BOOL api_lsa_CreateSecret(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r);
+
ZERO_STRUCT(r.out);
r.out.sec_handle = talloc_size(mem_ctx, sizeof(*r.out.sec_handle));
if (r.out.sec_handle == NULL) {
@@ -919,6 +1018,9 @@ static BOOL api_lsa_CreateSecret(pipes_struct *p)
r.out.result = _lsa_CreateSecret(p, r.in.handle, r.in.name, r.in.access_mask, r.out.sec_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -967,6 +1069,9 @@ static BOOL api_lsa_OpenAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r);
+
ZERO_STRUCT(r.out);
r.out.acct_handle = talloc_size(mem_ctx, sizeof(*r.out.acct_handle));
if (r.out.acct_handle == NULL) {
@@ -976,6 +1081,9 @@ static BOOL api_lsa_OpenAccount(pipes_struct *p)
r.out.result = _lsa_OpenAccount(p, r.in.handle, r.in.sid, r.in.access_mask, r.out.acct_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1024,6 +1132,9 @@ static BOOL api_lsa_EnumPrivsAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r);
+
ZERO_STRUCT(r.out);
r.out.privs = talloc_size(mem_ctx, sizeof(*r.out.privs));
if (r.out.privs == NULL) {
@@ -1033,6 +1144,9 @@ static BOOL api_lsa_EnumPrivsAccount(pipes_struct *p)
r.out.result = _lsa_EnumPrivsAccount(p, r.in.handle, r.out.privs);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1081,8 +1195,14 @@ static BOOL api_lsa_AddPrivilegesToAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r);
+
r.out.result = _lsa_AddPrivilegesToAccount(p, r.in.handle, r.in.privs);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1131,8 +1251,14 @@ static BOOL api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+
r.out.result = _lsa_RemovePrivilegesFromAccount(p, r.in.handle, r.in.remove_all, r.in.privs);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1181,8 +1307,14 @@ static BOOL api_lsa_GetQuotasForAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r);
+
r.out.result = _lsa_GetQuotasForAccount(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1231,8 +1363,14 @@ static BOOL api_lsa_SetQuotasForAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r);
+
r.out.result = _lsa_SetQuotasForAccount(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1281,8 +1419,14 @@ static BOOL api_lsa_GetSystemAccessAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r);
+
r.out.result = _lsa_GetSystemAccessAccount(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1331,8 +1475,14 @@ static BOOL api_lsa_SetSystemAccessAccount(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r);
+
r.out.result = _lsa_SetSystemAccessAccount(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1381,6 +1531,9 @@ static BOOL api_lsa_OpenTrustedDomain(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r);
+
ZERO_STRUCT(r.out);
r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
@@ -1390,6 +1543,9 @@ static BOOL api_lsa_OpenTrustedDomain(pipes_struct *p)
r.out.result = _lsa_OpenTrustedDomain(p, r.in.handle, r.in.sid, r.in.access_mask, r.out.trustdom_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1438,6 +1594,9 @@ static BOOL api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -1447,6 +1606,9 @@ static BOOL api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
r.out.result = _lsa_QueryTrustedDomainInfo(p, r.in.trustdom_handle, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1495,8 +1657,14 @@ static BOOL api_lsa_SetInformationTrustedDomain(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r);
+
r.out.result = _lsa_SetInformationTrustedDomain(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1545,6 +1713,9 @@ static BOOL api_lsa_OpenSecret(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r);
+
ZERO_STRUCT(r.out);
r.out.sec_handle = talloc_size(mem_ctx, sizeof(*r.out.sec_handle));
if (r.out.sec_handle == NULL) {
@@ -1554,6 +1725,9 @@ static BOOL api_lsa_OpenSecret(pipes_struct *p)
r.out.result = _lsa_OpenSecret(p, r.in.handle, r.in.name, r.in.access_mask, r.out.sec_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1602,8 +1776,14 @@ static BOOL api_lsa_SetSecret(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r);
+
r.out.result = _lsa_SetSecret(p, r.in.sec_handle, r.in.new_val, r.in.old_val);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1652,6 +1832,9 @@ static BOOL api_lsa_QuerySecret(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &r);
+
ZERO_STRUCT(r.out);
r.out.new_val = r.in.new_val;
r.out.new_mtime = r.in.new_mtime;
@@ -1659,6 +1842,9 @@ static BOOL api_lsa_QuerySecret(pipes_struct *p)
r.out.old_mtime = r.in.old_mtime;
r.out.result = _lsa_QuerySecret(p, r.in.sec_handle, r.in.new_val, r.in.new_mtime, r.in.old_val, r.in.old_mtime);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1707,6 +1893,9 @@ static BOOL api_lsa_LookupPrivValue(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r);
+
ZERO_STRUCT(r.out);
r.out.luid = talloc_size(mem_ctx, sizeof(*r.out.luid));
if (r.out.luid == NULL) {
@@ -1716,6 +1905,9 @@ static BOOL api_lsa_LookupPrivValue(pipes_struct *p)
r.out.result = _lsa_LookupPrivValue(p, r.in.handle, r.in.name, r.out.luid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1764,6 +1956,9 @@ static BOOL api_lsa_LookupPrivName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r);
+
ZERO_STRUCT(r.out);
r.out.name = talloc_size(mem_ctx, sizeof(*r.out.name));
if (r.out.name == NULL) {
@@ -1773,6 +1968,9 @@ static BOOL api_lsa_LookupPrivName(pipes_struct *p)
r.out.result = _lsa_LookupPrivName(p, r.in.handle, r.in.luid, r.out.name);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1821,6 +2019,9 @@ static BOOL api_lsa_LookupPrivDisplayName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r);
+
ZERO_STRUCT(r.out);
r.out.disp_name = talloc_size(mem_ctx, sizeof(*r.out.disp_name));
if (r.out.disp_name == NULL) {
@@ -1831,6 +2032,9 @@ static BOOL api_lsa_LookupPrivDisplayName(pipes_struct *p)
r.out.language_id = r.in.language_id;
r.out.result = _lsa_LookupPrivDisplayName(p, r.in.handle, r.in.name, r.out.disp_name, r.in.language_id, r.in.unknown);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1879,8 +2083,14 @@ static BOOL api_lsa_DeleteObject(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r);
+
r.out.result = _lsa_DeleteObject(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1929,6 +2139,9 @@ static BOOL api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+
ZERO_STRUCT(r.out);
r.out.sids = talloc_size(mem_ctx, sizeof(*r.out.sids));
if (r.out.sids == NULL) {
@@ -1938,6 +2151,9 @@ static BOOL api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
r.out.result = _lsa_EnumAccountsWithUserRight(p, r.in.handle, r.in.name, r.out.sids);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1986,6 +2202,9 @@ static BOOL api_lsa_EnumAccountRights(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r);
+
ZERO_STRUCT(r.out);
r.out.rights = talloc_size(mem_ctx, sizeof(*r.out.rights));
if (r.out.rights == NULL) {
@@ -1995,6 +2214,9 @@ static BOOL api_lsa_EnumAccountRights(pipes_struct *p)
r.out.result = _lsa_EnumAccountRights(p, r.in.handle, r.in.sid, r.out.rights);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2043,8 +2265,14 @@ static BOOL api_lsa_AddAccountRights(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r);
+
r.out.result = _lsa_AddAccountRights(p, r.in.handle, r.in.sid, r.in.rights);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2093,8 +2321,14 @@ static BOOL api_lsa_RemoveAccountRights(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r);
+
r.out.result = _lsa_RemoveAccountRights(p, r.in.handle, r.in.sid, r.in.unknown, r.in.rights);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2143,6 +2377,9 @@ static BOOL api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -2152,6 +2389,9 @@ static BOOL api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
r.out.result = _lsa_QueryTrustedDomainInfoBySid(p, r.in.handle, r.in.dom_sid, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2200,8 +2440,14 @@ static BOOL api_lsa_SetTrustedDomainInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r);
+
r.out.result = _lsa_SetTrustedDomainInfo(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2250,8 +2496,14 @@ static BOOL api_lsa_DeleteTrustedDomain(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r);
+
r.out.result = _lsa_DeleteTrustedDomain(p, r.in.handle, r.in.dom_sid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2300,8 +2552,14 @@ static BOOL api_lsa_StorePrivateData(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r);
+
r.out.result = _lsa_StorePrivateData(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2350,8 +2608,14 @@ static BOOL api_lsa_RetrievePrivateData(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r);
+
r.out.result = _lsa_RetrievePrivateData(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2400,6 +2664,9 @@ static BOOL api_lsa_OpenPolicy2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -2409,6 +2676,9 @@ static BOOL api_lsa_OpenPolicy2(pipes_struct *p)
r.out.result = _lsa_OpenPolicy2(p, r.in.system_name, r.in.attr, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2457,11 +2727,17 @@ static BOOL api_lsa_GetUserName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_GetUserName, &r);
+
ZERO_STRUCT(r.out);
r.out.account_name = r.in.account_name;
r.out.authority_name = r.in.authority_name;
r.out.result = _lsa_GetUserName(p, r.in.system_name, r.in.account_name, r.in.authority_name);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2510,6 +2786,9 @@ static BOOL api_lsa_QueryInfoPolicy2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -2519,6 +2798,9 @@ static BOOL api_lsa_QueryInfoPolicy2(pipes_struct *p)
r.out.result = _lsa_QueryInfoPolicy2(p, r.in.handle, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2567,8 +2849,14 @@ static BOOL api_lsa_SetInfoPolicy2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r);
+
r.out.result = _lsa_SetInfoPolicy2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2617,6 +2905,9 @@ static BOOL api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -2626,6 +2917,9 @@ static BOOL api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
r.out.result = _lsa_QueryTrustedDomainInfoByName(p, r.in.handle, r.in.trusted_domain, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2674,8 +2968,14 @@ static BOOL api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+
r.out.result = _lsa_SetTrustedDomainInfoByName(p, r.in.handle, r.in.trusted_domain, r.in.level, r.in.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2724,6 +3024,9 @@ static BOOL api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
@@ -2734,6 +3037,9 @@ static BOOL api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
r.out.result = _lsa_EnumTrustedDomainsEx(p, r.in.handle, r.in.resume_handle, r.out.domains, r.in.max_size);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2782,8 +3088,14 @@ static BOOL api_lsa_CreateTrustedDomainEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r);
+
r.out.result = _lsa_CreateTrustedDomainEx(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2832,10 +3144,16 @@ static BOOL api_lsa_CloseTrustedDomainEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
r.out.result = _lsa_CloseTrustedDomainEx(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2884,6 +3202,9 @@ static BOOL api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -2893,6 +3214,9 @@ static BOOL api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
r.out.result = _lsa_QueryDomainInformationPolicy(p, r.in.handle, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2941,8 +3265,14 @@ static BOOL api_lsa_SetDomainInformationPolicy(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r);
+
r.out.result = _lsa_SetDomainInformationPolicy(p, r.in.handle, r.in.level, r.in.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2991,6 +3321,9 @@ static BOOL api_lsa_OpenTrustedDomainByName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r);
+
ZERO_STRUCT(r.out);
r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
@@ -3000,6 +3333,9 @@ static BOOL api_lsa_OpenTrustedDomainByName(pipes_struct *p)
r.out.result = _lsa_OpenTrustedDomainByName(p, r.in.handle, r.in.name, r.in.access_mask, r.out.trustdom_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3048,8 +3384,14 @@ static BOOL api_lsa_TestCall(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_TestCall, &r);
+
r.out.result = _lsa_TestCall(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_TestCall, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3098,6 +3440,9 @@ static BOOL api_lsa_LookupSids2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -3109,6 +3454,9 @@ static BOOL api_lsa_LookupSids2(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupSids2(p, r.in.handle, r.in.sids, r.out.domains, r.in.names, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3157,6 +3505,9 @@ static BOOL api_lsa_LookupNames2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -3168,6 +3519,9 @@ static BOOL api_lsa_LookupNames2(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupNames2(p, r.in.handle, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3216,8 +3570,14 @@ static BOOL api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+
r.out.result = _lsa_CreateTrustedDomainEx2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3266,8 +3626,14 @@ static BOOL api_lsa_CREDRWRITE(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r);
+
r.out.result = _lsa_CREDRWRITE(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3316,8 +3682,14 @@ static BOOL api_lsa_CREDRREAD(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r);
+
r.out.result = _lsa_CREDRREAD(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3366,8 +3738,14 @@ static BOOL api_lsa_CREDRENUMERATE(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r);
+
r.out.result = _lsa_CREDRENUMERATE(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3416,8 +3794,14 @@ static BOOL api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+
r.out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3466,8 +3850,14 @@ static BOOL api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+
r.out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3516,8 +3906,14 @@ static BOOL api_lsa_CREDRDELETE(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r);
+
r.out.result = _lsa_CREDRDELETE(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3566,8 +3962,14 @@ static BOOL api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+
r.out.result = _lsa_CREDRGETTARGETINFO(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3616,8 +4018,14 @@ static BOOL api_lsa_CREDRPROFILELOADED(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r);
+
r.out.result = _lsa_CREDRPROFILELOADED(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3666,6 +4074,9 @@ static BOOL api_lsa_LookupNames3(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -3677,6 +4088,9 @@ static BOOL api_lsa_LookupNames3(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupNames3(p, r.in.handle, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3725,8 +4139,14 @@ static BOOL api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+
r.out.result = _lsa_CREDRGETSESSIONTYPES(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3775,8 +4195,14 @@ static BOOL api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+
r.out.result = _lsa_LSARREGISTERAUDITEVENT(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3825,8 +4251,14 @@ static BOOL api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+
r.out.result = _lsa_LSARGENAUDITEVENT(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3875,8 +4307,14 @@ static BOOL api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+
r.out.result = _lsa_LSARUNREGISTERAUDITEVENT(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3925,8 +4363,14 @@ static BOOL api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+
r.out.result = _lsa_LSARQUERYFORESTTRUSTINFORMATION(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -3975,8 +4419,14 @@ static BOOL api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+
r.out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4025,8 +4475,14 @@ static BOOL api_lsa_CREDRRENAME(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r);
+
r.out.result = _lsa_CREDRRENAME(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4075,6 +4531,9 @@ static BOOL api_lsa_LookupSids3(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -4086,6 +4545,9 @@ static BOOL api_lsa_LookupSids3(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupSids3(p, r.in.sids, r.out.domains, r.in.names, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4134,6 +4596,9 @@ static BOOL api_lsa_LookupNames4(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r);
+
ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
@@ -4145,6 +4610,9 @@ static BOOL api_lsa_LookupNames4(pipes_struct *p)
r.out.count = r.in.count;
r.out.result = _lsa_LookupNames4(p, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4193,8 +4661,14 @@ static BOOL api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+
r.out.result = _lsa_LSAROPENPOLICYSCE(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4243,8 +4717,14 @@ static BOOL api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+
r.out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4293,8 +4773,14 @@ static BOOL api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+
r.out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -4343,8 +4829,14 @@ static BOOL api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+
r.out.result = _lsa_LSARADTREPORTSECURITYEVENT(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_netlogon.c b/source3/librpc/gen_ndr/srv_netlogon.c
index c7dfc8c007..d667f1051f 100644
--- a/source3/librpc/gen_ndr/srv_netlogon.c
+++ b/source3/librpc/gen_ndr/srv_netlogon.c
@@ -31,6 +31,9 @@ static BOOL api_netr_LogonUasLogon(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_netr_LogonUasLogon(pipes_struct *p)
r.out.result = _netr_LogonUasLogon(p, r.in.server_name, r.in.account_name, r.in.workstation, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,6 +94,9 @@ static BOOL api_netr_LogonUasLogoff(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -97,6 +106,9 @@ static BOOL api_netr_LogonUasLogoff(pipes_struct *p)
r.out.result = _netr_LogonUasLogoff(p, r.in.server_name, r.in.account_name, r.in.workstation, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -145,6 +157,9 @@ static BOOL api_netr_LogonSamLogon(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.validation = talloc_size(mem_ctx, sizeof(*r.out.validation));
@@ -161,6 +176,9 @@ static BOOL api_netr_LogonSamLogon(pipes_struct *p)
r.out.result = _netr_LogonSamLogon(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.logon_level, r.in.logon, r.in.validation_level, r.out.validation, r.out.authoritative);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -209,10 +227,16 @@ static BOOL api_netr_LogonSamLogoff(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.result = _netr_LogonSamLogoff(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.logon_level, r.in.logon);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -261,10 +285,16 @@ static BOOL api_netr_ServerReqChallenge(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, &r);
+
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
r.out.result = _netr_ServerReqChallenge(p, r.in.server_name, r.in.computer_name, r.in.credentials);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -313,10 +343,16 @@ static BOOL api_netr_ServerAuthenticate(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, &r);
+
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
r.out.result = _netr_ServerAuthenticate(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credentials);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -365,6 +401,9 @@ static BOOL api_netr_ServerPasswordSet(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = talloc_size(mem_ctx, sizeof(*r.out.return_authenticator));
if (r.out.return_authenticator == NULL) {
@@ -374,6 +413,9 @@ static BOOL api_netr_ServerPasswordSet(pipes_struct *p)
r.out.result = _netr_ServerPasswordSet(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credential, r.in.new_password, r.out.return_authenticator);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -422,6 +464,9 @@ static BOOL api_netr_DatabaseDeltas(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.sequence_num = r.in.sequence_num;
@@ -433,6 +478,9 @@ static BOOL api_netr_DatabaseDeltas(pipes_struct *p)
r.out.result = _netr_DatabaseDeltas(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.database_id, r.in.sequence_num, r.in.preferredmaximumlength, r.out.delta_enum_array);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -481,6 +529,9 @@ static BOOL api_netr_DatabaseSync(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseSync, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.sync_context = r.in.sync_context;
@@ -492,6 +543,9 @@ static BOOL api_netr_DatabaseSync(pipes_struct *p)
r.out.result = _netr_DatabaseSync(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.database_id, r.in.sync_context, r.in.preferredmaximumlength, r.out.delta_enum_array);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -540,6 +594,9 @@ static BOOL api_netr_AccountDeltas(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_AccountDeltas, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.buffer = talloc_size(mem_ctx, sizeof(*r.out.buffer));
@@ -568,6 +625,9 @@ static BOOL api_netr_AccountDeltas(pipes_struct *p)
r.out.result = _netr_AccountDeltas(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.uas, r.in.count, r.in.level, r.in.buffersize, r.out.buffer, r.out.count_returned, r.out.total_entries, r.out.recordid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -616,6 +676,9 @@ static BOOL api_netr_AccountSync(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_AccountSync, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.buffer = talloc_size(mem_ctx, sizeof(*r.out.buffer));
@@ -645,6 +708,9 @@ static BOOL api_netr_AccountSync(pipes_struct *p)
r.out.recordid = r.in.recordid;
r.out.result = _netr_AccountSync(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.reference, r.in.level, r.in.buffersize, r.out.buffer, r.out.count_returned, r.out.total_entries, r.out.next_reference, r.in.recordid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_AccountSync, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -693,6 +759,9 @@ static BOOL api_netr_GetDcName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_GetDcName, &r);
+
ZERO_STRUCT(r.out);
r.out.dcname = talloc_size(mem_ctx, sizeof(*r.out.dcname));
if (r.out.dcname == NULL) {
@@ -702,6 +771,9 @@ static BOOL api_netr_GetDcName(pipes_struct *p)
r.out.result = _netr_GetDcName(p, r.in.logon_server, r.in.domainname, r.out.dcname);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_GetDcName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -750,6 +822,9 @@ static BOOL api_netr_LogonControl(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonControl, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -759,6 +834,9 @@ static BOOL api_netr_LogonControl(pipes_struct *p)
r.out.result = _netr_LogonControl(p, r.in.logon_server, r.in.function_code, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonControl, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -807,6 +885,9 @@ static BOOL api_netr_GetAnyDCName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, &r);
+
ZERO_STRUCT(r.out);
r.out.dcname = talloc_size(mem_ctx, sizeof(*r.out.dcname));
if (r.out.dcname == NULL) {
@@ -816,6 +897,9 @@ static BOOL api_netr_GetAnyDCName(pipes_struct *p)
r.out.result = _netr_GetAnyDCName(p, r.in.logon_server, r.in.domainname, r.out.dcname);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -864,6 +948,9 @@ static BOOL api_netr_LogonControl2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonControl2, &r);
+
ZERO_STRUCT(r.out);
r.out.query = talloc_size(mem_ctx, sizeof(*r.out.query));
if (r.out.query == NULL) {
@@ -873,6 +960,9 @@ static BOOL api_netr_LogonControl2(pipes_struct *p)
r.out.result = _netr_LogonControl2(p, r.in.logon_server, r.in.function_code, r.in.level, r.in.data, r.out.query);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonControl2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -921,11 +1011,17 @@ static BOOL api_netr_ServerAuthenticate2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, &r);
+
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
r.out.negotiate_flags = r.in.negotiate_flags;
r.out.result = _netr_ServerAuthenticate2(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credentials, r.in.negotiate_flags);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -974,6 +1070,9 @@ static BOOL api_netr_DatabaseSync2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.sync_context = r.in.sync_context;
@@ -985,6 +1084,9 @@ static BOOL api_netr_DatabaseSync2(pipes_struct *p)
r.out.result = _netr_DatabaseSync2(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.database_id, r.in.restart_state, r.in.sync_context, r.in.preferredmaximumlength, r.out.delta_enum_array);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1033,6 +1135,9 @@ static BOOL api_netr_DatabaseRedo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.delta_enum_array = talloc_size(mem_ctx, sizeof(*r.out.delta_enum_array));
@@ -1043,6 +1148,9 @@ static BOOL api_netr_DatabaseRedo(pipes_struct *p)
r.out.result = _netr_DatabaseRedo(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.change_log_entry, r.in.change_log_entry_size, r.out.delta_enum_array);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1091,6 +1199,9 @@ static BOOL api_netr_LogonControl2Ex(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, &r);
+
ZERO_STRUCT(r.out);
r.out.query = talloc_size(mem_ctx, sizeof(*r.out.query));
if (r.out.query == NULL) {
@@ -1100,6 +1211,9 @@ static BOOL api_netr_LogonControl2Ex(pipes_struct *p)
r.out.result = _netr_LogonControl2Ex(p, r.in.logon_server, r.in.function_code, r.in.level, r.in.data, r.out.query);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1148,8 +1262,14 @@ static BOOL api_netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+
r.out.result = _netr_NETRENUMERATETRUSTEDDOMAINS(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1198,6 +1318,9 @@ static BOOL api_netr_DsRGetDCName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -1207,6 +1330,9 @@ static BOOL api_netr_DsRGetDCName(pipes_struct *p)
r.out.result = _netr_DsRGetDCName(p, r.in.server_unc, r.in.domain_name, r.in.domain_guid, r.in.site_guid, r.in.flags, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1255,8 +1381,14 @@ static BOOL api_netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+
r.out.result = _netr_NETRLOGONDUMMYROUTINE1(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1305,8 +1437,14 @@ static BOOL api_netr_NETRLOGONSETSERVICEBITS(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+
r.out.result = _netr_NETRLOGONSETSERVICEBITS(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1355,8 +1493,14 @@ static BOOL api_netr_NETRLOGONGETTRUSTRID(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+
r.out.result = _netr_NETRLOGONGETTRUSTRID(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1405,8 +1549,14 @@ static BOOL api_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+
r.out.result = _netr_NETRLOGONCOMPUTESERVERDIGEST(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1455,8 +1605,14 @@ static BOOL api_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+
r.out.result = _netr_NETRLOGONCOMPUTECLIENTDIGEST(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1505,6 +1661,9 @@ static BOOL api_netr_ServerAuthenticate3(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, &r);
+
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
r.out.negotiate_flags = r.in.negotiate_flags;
@@ -1516,6 +1675,9 @@ static BOOL api_netr_ServerAuthenticate3(pipes_struct *p)
r.out.result = _netr_ServerAuthenticate3(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credentials, r.in.negotiate_flags, r.out.rid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1564,6 +1726,9 @@ static BOOL api_netr_DsRGetDCNameEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -1573,6 +1738,9 @@ static BOOL api_netr_DsRGetDCNameEx(pipes_struct *p)
r.out.result = _netr_DsRGetDCNameEx(p, r.in.server_unc, r.in.domain_name, r.in.domain_guid, r.in.site_name, r.in.flags, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1621,6 +1789,9 @@ static BOOL api_netr_DsRGetSiteName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, &r);
+
ZERO_STRUCT(r.out);
r.out.site = talloc_size(mem_ctx, sizeof(*r.out.site));
if (r.out.site == NULL) {
@@ -1630,6 +1801,9 @@ static BOOL api_netr_DsRGetSiteName(pipes_struct *p)
r.out.result = _netr_DsRGetSiteName(p, r.in.computer_name, r.out.site);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1678,6 +1852,9 @@ static BOOL api_netr_LogonGetDomainInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
@@ -1688,6 +1865,9 @@ static BOOL api_netr_LogonGetDomainInfo(pipes_struct *p)
r.out.result = _netr_LogonGetDomainInfo(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.level, r.in.query, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1736,6 +1916,9 @@ static BOOL api_netr_ServerPasswordSet2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = talloc_size(mem_ctx, sizeof(*r.out.return_authenticator));
if (r.out.return_authenticator == NULL) {
@@ -1745,6 +1928,9 @@ static BOOL api_netr_ServerPasswordSet2(pipes_struct *p)
r.out.result = _netr_ServerPasswordSet2(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credential, r.in.new_password, r.out.return_authenticator);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1793,8 +1979,14 @@ static BOOL api_netr_NETRSERVERPASSWORDGET(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+
r.out.result = _netr_NETRSERVERPASSWORDGET(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1843,8 +2035,14 @@ static BOOL api_netr_NETRLOGONSENDTOSAM(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+
r.out.result = _netr_NETRLOGONSENDTOSAM(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1893,8 +2091,14 @@ static BOOL api_netr_DSRADDRESSTOSITENAMESW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+
r.out.result = _netr_DSRADDRESSTOSITENAMESW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1943,6 +2147,9 @@ static BOOL api_netr_DsRGetDCNameEx2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -1952,6 +2159,9 @@ static BOOL api_netr_DsRGetDCNameEx2(pipes_struct *p)
r.out.result = _netr_DsRGetDCNameEx2(p, r.in.server_unc, r.in.client_account, r.in.mask, r.in.domain_name, r.in.domain_guid, r.in.site_name, r.in.flags, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2000,8 +2210,14 @@ static BOOL api_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+
r.out.result = _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2050,8 +2266,14 @@ static BOOL api_netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+
r.out.result = _netr_NETRENUMERATETRUSTEDDOMAINSEX(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2100,8 +2322,14 @@ static BOOL api_netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+
r.out.result = _netr_DSRADDRESSTOSITENAMESEXW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2150,8 +2378,14 @@ static BOOL api_netr_DSRGETDCSITECOVERAGEW(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+
r.out.result = _netr_DSRGETDCSITECOVERAGEW(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2200,6 +2434,9 @@ static BOOL api_netr_LogonSamLogonEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, &r);
+
ZERO_STRUCT(r.out);
r.out.validation = talloc_size(mem_ctx, sizeof(*r.out.validation));
if (r.out.validation == NULL) {
@@ -2216,6 +2453,9 @@ static BOOL api_netr_LogonSamLogonEx(pipes_struct *p)
r.out.flags = r.in.flags;
r.out.result = _netr_LogonSamLogonEx(p, r.in.server_name, r.in.computer_name, r.in.logon_level, r.in.logon, r.in.validation_level, r.out.validation, r.out.authoritative, r.in.flags);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2264,6 +2504,9 @@ static BOOL api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+
ZERO_STRUCT(r.out);
r.out.count = talloc_size(mem_ctx, sizeof(*r.out.count));
if (r.out.count == NULL) {
@@ -2279,6 +2522,9 @@ static BOOL api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
r.out.result = _netr_DsrEnumerateDomainTrusts(p, r.in.server_name, r.in.trust_flags, r.out.count, r.out.trusts);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2327,8 +2573,14 @@ static BOOL api_netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+
r.out.result = _netr_DSRDEREGISTERDNSHOSTRECORDS(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2377,8 +2629,14 @@ static BOOL api_netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+
r.out.result = _netr_NETRSERVERTRUSTPASSWORDSGET(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2427,8 +2685,14 @@ static BOOL api_netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+
r.out.result = _netr_DSRGETFORESTTRUSTINFORMATION(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2477,8 +2741,14 @@ static BOOL api_netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+
r.out.result = _netr_NETRGETFORESTTRUSTINFORMATION(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2527,6 +2797,9 @@ static BOOL api_netr_LogonSamLogonWithFlags(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, &r);
+
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.validation = talloc_size(mem_ctx, sizeof(*r.out.validation));
@@ -2544,6 +2817,9 @@ static BOOL api_netr_LogonSamLogonWithFlags(pipes_struct *p)
r.out.flags = r.in.flags;
r.out.result = _netr_LogonSamLogonWithFlags(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.logon_level, r.in.logon, r.in.validation_level, r.out.validation, r.out.authoritative, r.in.flags);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -2592,8 +2868,14 @@ static BOOL api_netr_NETRSERVERGETTRUSTINFO(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+
r.out.result = _netr_NETRSERVERGETTRUSTINFO(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c
index 31578ee1d1..2195e7964f 100644
--- a/source3/librpc/gen_ndr/srv_unixinfo.c
+++ b/source3/librpc/gen_ndr/srv_unixinfo.c
@@ -31,6 +31,9 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r);
+
ZERO_STRUCT(r.out);
r.out.uid = talloc_size(mem_ctx, sizeof(*r.out.uid));
if (r.out.uid == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p)
r.out.result = _unixinfo_SidToUid(p, r.in.sid, r.out.uid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,6 +94,9 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r);
+
ZERO_STRUCT(r.out);
r.out.sid = talloc_size(mem_ctx, sizeof(*r.out.sid));
if (r.out.sid == NULL) {
@@ -97,6 +106,9 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p)
r.out.result = _unixinfo_UidToSid(p, r.in.uid, r.out.sid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -145,6 +157,9 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r);
+
ZERO_STRUCT(r.out);
r.out.gid = talloc_size(mem_ctx, sizeof(*r.out.gid));
if (r.out.gid == NULL) {
@@ -154,6 +169,9 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p)
r.out.result = _unixinfo_SidToGid(p, r.in.sid, r.out.gid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -202,6 +220,9 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r);
+
ZERO_STRUCT(r.out);
r.out.sid = talloc_size(mem_ctx, sizeof(*r.out.sid));
if (r.out.sid == NULL) {
@@ -211,6 +232,9 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p)
r.out.result = _unixinfo_GidToSid(p, r.in.gid, r.out.sid);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -259,6 +283,9 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r);
+
ZERO_STRUCT(r.out);
r.out.count = r.in.count;
r.out.infos = talloc_array_size(mem_ctx, sizeof(*r.out.infos), *r.in.count);
@@ -269,6 +296,9 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p)
r.out.result = _unixinfo_GetPWUid(p, r.in.count, r.in.uids, r.out.infos);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_winreg.c b/source3/librpc/gen_ndr/srv_winreg.c
index 005f4c3b5b..8c4cf4a2b4 100644
--- a/source3/librpc/gen_ndr/srv_winreg.c
+++ b/source3/librpc/gen_ndr/srv_winreg.c
@@ -31,6 +31,9 @@ static BOOL api_winreg_OpenHKCR(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_winreg_OpenHKCR(pipes_struct *p)
r.out.result = _winreg_OpenHKCR(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,6 +94,9 @@ static BOOL api_winreg_OpenHKCU(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -97,6 +106,9 @@ static BOOL api_winreg_OpenHKCU(pipes_struct *p)
r.out.result = _winreg_OpenHKCU(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -145,6 +157,9 @@ static BOOL api_winreg_OpenHKLM(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -154,6 +169,9 @@ static BOOL api_winreg_OpenHKLM(pipes_struct *p)
r.out.result = _winreg_OpenHKLM(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -202,6 +220,9 @@ static BOOL api_winreg_OpenHKPD(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -211,6 +232,9 @@ static BOOL api_winreg_OpenHKPD(pipes_struct *p)
r.out.result = _winreg_OpenHKPD(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -259,6 +283,9 @@ static BOOL api_winreg_OpenHKU(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKU, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -268,6 +295,9 @@ static BOOL api_winreg_OpenHKU(pipes_struct *p)
r.out.result = _winreg_OpenHKU(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -316,10 +346,16 @@ static BOOL api_winreg_CloseKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_CloseKey, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
r.out.result = _winreg_CloseKey(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_CloseKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -368,6 +404,9 @@ static BOOL api_winreg_CreateKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_CreateKey, &r);
+
ZERO_STRUCT(r.out);
r.out.new_handle = talloc_size(mem_ctx, sizeof(*r.out.new_handle));
if (r.out.new_handle == NULL) {
@@ -378,6 +417,9 @@ static BOOL api_winreg_CreateKey(pipes_struct *p)
r.out.action_taken = r.in.action_taken;
r.out.result = _winreg_CreateKey(p, r.in.handle, r.in.name, r.in.keyclass, r.in.options, r.in.access_mask, r.in.secdesc, r.out.new_handle, r.in.action_taken);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_CreateKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -426,8 +468,14 @@ static BOOL api_winreg_DeleteKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_DeleteKey, &r);
+
r.out.result = _winreg_DeleteKey(p, r.in.handle, r.in.key);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -476,8 +524,14 @@ static BOOL api_winreg_DeleteValue(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_DeleteValue, &r);
+
r.out.result = _winreg_DeleteValue(p, r.in.handle, r.in.value);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -526,12 +580,18 @@ static BOOL api_winreg_EnumKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_EnumKey, &r);
+
ZERO_STRUCT(r.out);
r.out.name = r.in.name;
r.out.keyclass = r.in.keyclass;
r.out.last_changed_time = r.in.last_changed_time;
r.out.result = _winreg_EnumKey(p, r.in.handle, r.in.enum_index, r.in.name, r.in.keyclass, r.in.last_changed_time);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_EnumKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -580,6 +640,9 @@ static BOOL api_winreg_EnumValue(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r);
+
ZERO_STRUCT(r.out);
r.out.name = r.in.name;
r.out.type = r.in.type;
@@ -588,6 +651,9 @@ static BOOL api_winreg_EnumValue(pipes_struct *p)
r.out.length = r.in.length;
r.out.result = _winreg_EnumValue(p, r.in.handle, r.in.enum_index, r.in.name, r.in.type, r.in.value, r.in.size, r.in.length);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_EnumValue, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -636,8 +702,14 @@ static BOOL api_winreg_FlushKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_FlushKey, &r);
+
r.out.result = _winreg_FlushKey(p, r.in.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_FlushKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -686,10 +758,16 @@ static BOOL api_winreg_GetKeySecurity(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, &r);
+
ZERO_STRUCT(r.out);
r.out.sd = r.in.sd;
r.out.result = _winreg_GetKeySecurity(p, r.in.handle, r.in.sec_info, r.in.sd);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -738,8 +816,14 @@ static BOOL api_winreg_LoadKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_LoadKey, &r);
+
r.out.result = _winreg_LoadKey(p, r.in.handle, r.in.keyname, r.in.filename);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_LoadKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -788,8 +872,14 @@ static BOOL api_winreg_NotifyChangeKeyValue(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, &r);
+
r.out.result = _winreg_NotifyChangeKeyValue(p, r.in.handle, r.in.watch_subtree, r.in.notify_filter, r.in.unknown, r.in.string1, r.in.string2, r.in.unknown2);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -838,6 +928,9 @@ static BOOL api_winreg_OpenKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenKey, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -847,6 +940,9 @@ static BOOL api_winreg_OpenKey(pipes_struct *p)
r.out.result = _winreg_OpenKey(p, r.in.parent_handle, r.in.keyname, r.in.unknown, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -895,6 +991,9 @@ static BOOL api_winreg_QueryInfoKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, &r);
+
ZERO_STRUCT(r.out);
r.out.class_out = talloc_size(mem_ctx, sizeof(*r.out.class_out));
if (r.out.class_out == NULL) {
@@ -952,6 +1051,9 @@ static BOOL api_winreg_QueryInfoKey(pipes_struct *p)
r.out.result = _winreg_QueryInfoKey(p, r.in.handle, r.in.class_in, r.out.class_out, r.out.num_subkeys, r.out.max_subkeylen, r.out.max_subkeysize, r.out.num_values, r.out.max_valnamelen, r.out.max_valbufsize, r.out.secdescsize, r.out.last_changed_time);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1000,6 +1102,9 @@ static BOOL api_winreg_QueryValue(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryValue, &r);
+
ZERO_STRUCT(r.out);
r.out.type = r.in.type;
r.out.data = r.in.data;
@@ -1007,6 +1112,9 @@ static BOOL api_winreg_QueryValue(pipes_struct *p)
r.out.length = r.in.length;
r.out.result = _winreg_QueryValue(p, r.in.handle, r.in.value_name, r.in.type, r.in.data, r.in.size, r.in.length);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryValue, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1055,8 +1163,14 @@ static BOOL api_winreg_ReplaceKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, &r);
+
r.out.result = _winreg_ReplaceKey(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1105,8 +1219,14 @@ static BOOL api_winreg_RestoreKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_RestoreKey, &r);
+
r.out.result = _winreg_RestoreKey(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1155,8 +1275,14 @@ static BOOL api_winreg_SaveKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SaveKey, &r);
+
r.out.result = _winreg_SaveKey(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SaveKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1205,10 +1331,16 @@ static BOOL api_winreg_SetKeySecurity(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, &r);
+
ZERO_STRUCT(r.out);
r.out.sd = r.in.sd;
r.out.result = _winreg_SetKeySecurity(p, r.in.handle, r.in.access_mask, r.in.sd);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1257,8 +1389,14 @@ static BOOL api_winreg_SetValue(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SetValue, &r);
+
r.out.result = _winreg_SetValue(p, r.in.handle, r.in.name, r.in.type, r.in.data, r.in.size);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SetValue, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1307,8 +1445,14 @@ static BOOL api_winreg_UnLoadKey(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, &r);
+
r.out.result = _winreg_UnLoadKey(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1357,8 +1501,14 @@ static BOOL api_winreg_InitiateSystemShutdown(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, &r);
+
r.out.result = _winreg_InitiateSystemShutdown(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1407,8 +1557,14 @@ static BOOL api_winreg_AbortSystemShutdown(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, &r);
+
r.out.result = _winreg_AbortSystemShutdown(p, r.in.server);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1457,6 +1613,9 @@ static BOOL api_winreg_GetVersion(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_GetVersion, &r);
+
ZERO_STRUCT(r.out);
r.out.version = talloc_size(mem_ctx, sizeof(*r.out.version));
if (r.out.version == NULL) {
@@ -1466,6 +1625,9 @@ static BOOL api_winreg_GetVersion(pipes_struct *p)
r.out.result = _winreg_GetVersion(p, r.in.handle, r.out.version);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_GetVersion, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1514,6 +1676,9 @@ static BOOL api_winreg_OpenHKCC(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -1523,6 +1688,9 @@ static BOOL api_winreg_OpenHKCC(pipes_struct *p)
r.out.result = _winreg_OpenHKCC(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1571,6 +1739,9 @@ static BOOL api_winreg_OpenHKDD(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -1580,6 +1751,9 @@ static BOOL api_winreg_OpenHKDD(pipes_struct *p)
r.out.result = _winreg_OpenHKDD(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1628,12 +1802,18 @@ static BOOL api_winreg_QueryMultipleValues(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, &r);
+
ZERO_STRUCT(r.out);
r.out.values = r.in.values;
r.out.buffer = r.in.buffer;
r.out.buffer_size = r.in.buffer_size;
r.out.result = _winreg_QueryMultipleValues(p, r.in.key_handle, r.in.values, r.in.num_values, r.in.buffer, r.in.buffer_size);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1682,8 +1862,14 @@ static BOOL api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+
r.out.result = _winreg_InitiateSystemShutdownEx(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot, r.in.reason);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1732,8 +1918,14 @@ static BOOL api_winreg_SaveKeyEx(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, &r);
+
r.out.result = _winreg_SaveKeyEx(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1782,6 +1974,9 @@ static BOOL api_winreg_OpenHKPT(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -1791,6 +1986,9 @@ static BOOL api_winreg_OpenHKPT(pipes_struct *p)
r.out.result = _winreg_OpenHKPT(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1839,6 +2037,9 @@ static BOOL api_winreg_OpenHKPN(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, &r);
+
ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
@@ -1848,6 +2049,9 @@ static BOOL api_winreg_OpenHKPN(pipes_struct *p)
r.out.result = _winreg_OpenHKPN(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1896,8 +2100,14 @@ static BOOL api_winreg_QueryMultipleValues2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, &r);
+
r.out.result = _winreg_QueryMultipleValues2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_wkssvc.c b/source3/librpc/gen_ndr/srv_wkssvc.c
index 874dcb397e..330bfc457b 100644
--- a/source3/librpc/gen_ndr/srv_wkssvc.c
+++ b/source3/librpc/gen_ndr/srv_wkssvc.c
@@ -31,6 +31,9 @@ static BOOL api_wkssvc_NetWkstaGetInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+
ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
@@ -40,6 +43,9 @@ static BOOL api_wkssvc_NetWkstaGetInfo(pipes_struct *p)
r.out.result = _wkssvc_NetWkstaGetInfo(p, r.in.server_name, r.in.level, r.out.info);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -88,10 +94,16 @@ static BOOL api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+
ZERO_STRUCT(r.out);
r.out.parm_error = r.in.parm_error;
r.out.result = _wkssvc_NetWkstaSetInfo(p, r.in.server_name, r.in.level, r.in.info, r.in.parm_error);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -140,6 +152,9 @@ static BOOL api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+
ZERO_STRUCT(r.out);
r.out.users = r.in.users;
r.out.entriesread = talloc_size(mem_ctx, sizeof(*r.out.entriesread));
@@ -157,6 +172,9 @@ static BOOL api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
r.out.resumehandle = r.in.resumehandle;
r.out.result = _wkssvc_NetWkstaEnumUsers(p, r.in.server_name, r.in.level, r.in.users, r.in.prefmaxlen, r.out.entriesread, r.out.totalentries, r.in.resumehandle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -205,8 +223,14 @@ static BOOL api_WKSSVC_NETRWKSTAUSERGETINFO(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, &r);
+
r.out.result = _WKSSVC_NETRWKSTAUSERGETINFO(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -255,8 +279,14 @@ static BOOL api_WKSSVC_NETRWKSTAUSERSETINFO(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, &r);
+
r.out.result = _WKSSVC_NETRWKSTAUSERSETINFO(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -305,6 +335,9 @@ static BOOL api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+
ZERO_STRUCT(r.out);
r.out.level = r.in.level;
r.out.ctr = r.in.ctr;
@@ -317,6 +350,9 @@ static BOOL api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
r.out.resume_handle = r.in.resume_handle;
r.out.result = _wkssvc_NetWkstaTransportEnum(p, r.in.server_name, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -365,8 +401,14 @@ static BOOL api_WKSSVC_NETRWKSTATRANSPORTADD(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, &r);
+
r.out.result = _WKSSVC_NETRWKSTATRANSPORTADD(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -415,8 +457,14 @@ static BOOL api_WKSSVC_NETRWKSTATRANSPORTDEL(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, &r);
+
r.out.result = _WKSSVC_NETRWKSTATRANSPORTDEL(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -465,8 +513,14 @@ static BOOL api_WKSSVC_NETRUSEADD(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEADD, &r);
+
r.out.result = _WKSSVC_NETRUSEADD(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEADD, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -515,8 +569,14 @@ static BOOL api_WKSSVC_NETRUSEGETINFO(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEGETINFO, &r);
+
r.out.result = _WKSSVC_NETRUSEGETINFO(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEGETINFO, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -565,8 +625,14 @@ static BOOL api_WKSSVC_NETRUSEDEL(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEDEL, &r);
+
r.out.result = _WKSSVC_NETRUSEDEL(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEDEL, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -615,8 +681,14 @@ static BOOL api_WKSSVC_NETRUSEENUM(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEENUM, &r);
+
r.out.result = _WKSSVC_NETRUSEENUM(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUSEENUM, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -665,8 +737,14 @@ static BOOL api_WKSSVC_NETRMESSAGEBUFFERSEND(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, &r);
+
r.out.result = _WKSSVC_NETRMESSAGEBUFFERSEND(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -715,8 +793,14 @@ static BOOL api_WKSSVC_NETRWORKSTATIONSTATISTICSGET(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
+
r.out.result = _WKSSVC_NETRWORKSTATIONSTATISTICSGET(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -765,8 +849,14 @@ static BOOL api_WKSSVC_NETRLOGONDOMAINNAMEADD(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
+
r.out.result = _WKSSVC_NETRLOGONDOMAINNAMEADD(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -815,8 +905,14 @@ static BOOL api_WKSSVC_NETRLOGONDOMAINNAMEDEL(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
+
r.out.result = _WKSSVC_NETRLOGONDOMAINNAMEDEL(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -865,8 +961,14 @@ static BOOL api_WKSSVC_NETRJOINDOMAIN(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRJOINDOMAIN, &r);
+
r.out.result = _WKSSVC_NETRJOINDOMAIN(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRJOINDOMAIN, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -915,8 +1017,14 @@ static BOOL api_WKSSVC_NETRUNJOINDOMAIN(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRUNJOINDOMAIN, &r);
+
r.out.result = _WKSSVC_NETRUNJOINDOMAIN(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRUNJOINDOMAIN, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -965,8 +1073,14 @@ static BOOL api_WKSSVC_NETRRENAMEMACHINEINDOMAIN(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
+
r.out.result = _WKSSVC_NETRRENAMEMACHINEINDOMAIN(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1015,8 +1129,14 @@ static BOOL api_WKSSVC_NETRVALIDATENAME(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME, &r);
+
r.out.result = _WKSSVC_NETRVALIDATENAME(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRVALIDATENAME, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1065,8 +1185,14 @@ static BOOL api_WKSSVC_NETRGETJOININFORMATION(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOININFORMATION, &r);
+
r.out.result = _WKSSVC_NETRGETJOININFORMATION(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOININFORMATION, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1115,8 +1241,14 @@ static BOOL api_WKSSVC_NETRGETJOINABLEOUS(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS, &r);
+
r.out.result = _WKSSVC_NETRGETJOINABLEOUS(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOINABLEOUS, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1165,8 +1297,14 @@ static BOOL api_wkssvc_NetrJoinDomain2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, &r);
+
r.out.result = _wkssvc_NetrJoinDomain2(p, r.in.server_name, r.in.domain_name, r.in.account_name, r.in.admin_account, r.in.encrypted_password, r.in.join_flags);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1215,8 +1353,14 @@ static BOOL api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+
r.out.result = _wkssvc_NetrUnjoinDomain2(p, r.in.server_name, r.in.account, r.in.encrypted_password, r.in.unjoin_flags);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1265,8 +1409,14 @@ static BOOL api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+
r.out.result = _wkssvc_NetrRenameMachineInDomain2(p, r.in.server_name, r.in.NewMachineName, r.in.Account, r.in.EncryptedPassword, r.in.RenameOptions);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1315,8 +1465,14 @@ static BOOL api_WKSSVC_NETRVALIDATENAME2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME2, &r);
+
r.out.result = _WKSSVC_NETRVALIDATENAME2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRVALIDATENAME2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1365,8 +1521,14 @@ static BOOL api_WKSSVC_NETRGETJOINABLEOUS2(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, &r);
+
r.out.result = _WKSSVC_NETRGETJOINABLEOUS2(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1415,8 +1577,14 @@ static BOOL api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+
r.out.result = _wkssvc_NetrAddAlternateComputerName(p, r.in.server_name, r.in.NewAlternateMachineName, r.in.Account, r.in.EncryptedPassword, r.in.Reserved);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1465,8 +1633,14 @@ static BOOL api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+
r.out.result = _wkssvc_NetrRemoveAlternateComputerName(p, r.in.server_name, r.in.AlternateMachineNameToRemove, r.in.Account, r.in.EncryptedPassword, r.in.Reserved);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1515,8 +1689,14 @@ static BOOL api_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
+
r.out.result = _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);
@@ -1565,8 +1745,14 @@ static BOOL api_WKSSVC_NETRENUMERATECOMPUTERNAMES(pipes_struct *p)
return False;
}
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_IN_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
+
r.out.result = _WKSSVC_NETRENUMERATECOMPUTERNAMES(p);
+ if (DEBUGLEVEL >= 10)
+ NDR_PRINT_OUT_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
+
push = ndr_push_init_ctx(mem_ctx);
if (push == NULL) {
talloc_free(mem_ctx);