s3: re-run make samba3-idl.
[kai/samba-autobuild/.git] / librpc / gen_ndr / cli_lsa.c
index cfaf7e50b50bcaec577e70f10e98b63f2d2681d4..7945ee9af1d7978e88884d17b889a0179d97535d 100644 (file)
@@ -41,10 +41,6 @@ struct tevent_req *rpccli_lsa_Close_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_Close, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_Close_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -96,10 +92,6 @@ static void rpccli_lsa_Close_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_Close, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -136,10 +128,6 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_Close, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -150,10 +138,6 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_Close, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -199,10 +183,6 @@ struct tevent_req *rpccli_lsa_Delete_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_Delete, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -247,10 +227,6 @@ static void rpccli_lsa_Delete_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_Delete, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -287,10 +263,6 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_Delete, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -301,10 +273,6 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_Delete, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -356,10 +324,6 @@ struct tevent_req *rpccli_lsa_EnumPrivs_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumPrivs_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -412,10 +376,6 @@ static void rpccli_lsa_EnumPrivs_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -457,10 +417,6 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
        r.in.resume_handle = resume_handle;
        r.in.max_count = max_count;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -471,10 +427,6 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -525,10 +477,6 @@ struct tevent_req *rpccli_lsa_QuerySecurity_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QuerySecurity_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -580,10 +528,6 @@ static void rpccli_lsa_QuerySecurity_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -623,10 +567,6 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.sec_info = sec_info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -637,10 +577,6 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -690,10 +626,6 @@ struct tevent_req *rpccli_lsa_SetSecObj_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -738,10 +670,6 @@ static void rpccli_lsa_SetSecObj_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -782,10 +710,6 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
        r.in.sec_info = sec_info;
        r.in.sdbuf = sdbuf;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -796,10 +720,6 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -842,10 +762,6 @@ struct tevent_req *rpccli_lsa_ChangePassword_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -890,10 +806,6 @@ static void rpccli_lsa_ChangePassword_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -928,10 +840,6 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -942,10 +850,6 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -996,10 +900,6 @@ struct tevent_req *rpccli_lsa_OpenPolicy_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_OpenPolicy_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -1051,10 +951,6 @@ static void rpccli_lsa_OpenPolicy_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -1096,10 +992,6 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
        r.in.attr = attr;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -1110,10 +1002,6 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -1163,10 +1051,6 @@ struct tevent_req *rpccli_lsa_QueryInfoPolicy_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QueryInfoPolicy_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -1218,10 +1102,6 @@ static void rpccli_lsa_QueryInfoPolicy_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -1261,10 +1141,6 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -1275,10 +1151,6 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -1328,10 +1200,6 @@ struct tevent_req *rpccli_lsa_SetInfoPolicy_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -1376,10 +1244,6 @@ static void rpccli_lsa_SetInfoPolicy_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -1420,10 +1284,6 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -1434,10 +1294,6 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -1480,10 +1336,6 @@ struct tevent_req *rpccli_lsa_ClearAuditLog_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -1528,10 +1380,6 @@ static void rpccli_lsa_ClearAuditLog_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -1566,10 +1414,6 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -1580,10 +1424,6 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -1634,10 +1474,6 @@ struct tevent_req *rpccli_lsa_CreateAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_CreateAccount_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -1689,10 +1525,6 @@ static void rpccli_lsa_CreateAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -1734,10 +1566,6 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
        r.in.sid = sid;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -1748,10 +1576,6 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -1804,10 +1628,6 @@ struct tevent_req *rpccli_lsa_EnumAccounts_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumAccounts_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -1860,10 +1680,6 @@ static void rpccli_lsa_EnumAccounts_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -1905,10 +1721,6 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
        r.in.resume_handle = resume_handle;
        r.in.num_entries = num_entries;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -1919,10 +1731,6 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -1975,10 +1783,6 @@ struct tevent_req *rpccli_lsa_CreateTrustedDomain_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_CreateTrustedDomain_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -2030,10 +1834,6 @@ static void rpccli_lsa_CreateTrustedDomain_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -2075,10 +1875,6 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
        r.in.info = info;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -2089,10 +1885,6 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -2145,10 +1937,6 @@ struct tevent_req *rpccli_lsa_EnumTrustDom_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumTrustDom_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -2201,10 +1989,6 @@ static void rpccli_lsa_EnumTrustDom_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -2246,10 +2030,6 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
        r.in.resume_handle = resume_handle;
        r.in.max_size = max_size;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -2260,10 +2040,6 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -2324,10 +2100,6 @@ struct tevent_req *rpccli_lsa_LookupNames_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupNames_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -2381,10 +2153,6 @@ static void rpccli_lsa_LookupNames_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -2432,10 +2200,6 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.count = count;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -2446,10 +2210,6 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -2509,10 +2269,6 @@ struct tevent_req *rpccli_lsa_LookupSids_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupSids, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupSids_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -2566,10 +2322,6 @@ static void rpccli_lsa_LookupSids_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -2615,10 +2367,6 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.count = count;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -2629,10 +2377,6 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -2686,10 +2430,6 @@ struct tevent_req *rpccli_lsa_CreateSecret_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_CreateSecret_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -2741,10 +2481,6 @@ static void rpccli_lsa_CreateSecret_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -2786,10 +2522,6 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
        r.in.name = name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -2800,10 +2532,6 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -2855,10 +2583,6 @@ struct tevent_req *rpccli_lsa_OpenAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_OpenAccount_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -2910,10 +2634,6 @@ static void rpccli_lsa_OpenAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -2955,10 +2675,6 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
        r.in.sid = sid;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -2969,10 +2685,6 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3020,10 +2732,6 @@ struct tevent_req *rpccli_lsa_EnumPrivsAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumPrivsAccount_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -3075,10 +2783,6 @@ static void rpccli_lsa_EnumPrivsAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -3116,10 +2820,6 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -3130,10 +2830,6 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3181,10 +2877,6 @@ struct tevent_req *rpccli_lsa_AddPrivilegesToAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -3229,10 +2921,6 @@ static void rpccli_lsa_AddPrivilegesToAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -3271,10 +2959,6 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.privs = privs;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -3285,10 +2969,6 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3337,10 +3017,6 @@ struct tevent_req *rpccli_lsa_RemovePrivilegesFromAccount_send(TALLOC_CTX *mem_c
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -3385,10 +3061,6 @@ static void rpccli_lsa_RemovePrivilegesFromAccount_done(struct tevent_req *subre
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -3429,10 +3101,6 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
        r.in.remove_all = remove_all;
        r.in.privs = privs;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -3443,10 +3111,6 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3489,10 +3153,6 @@ struct tevent_req *rpccli_lsa_GetQuotasForAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -3537,10 +3197,6 @@ static void rpccli_lsa_GetQuotasForAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -3575,10 +3231,6 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -3589,10 +3241,6 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3635,10 +3283,6 @@ struct tevent_req *rpccli_lsa_SetQuotasForAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -3683,10 +3327,6 @@ static void rpccli_lsa_SetQuotasForAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -3721,10 +3361,6 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -3735,10 +3371,6 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3785,10 +3417,6 @@ struct tevent_req *rpccli_lsa_GetSystemAccessAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_GetSystemAccessAccount_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -3840,10 +3468,6 @@ static void rpccli_lsa_GetSystemAccessAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -3881,10 +3505,6 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -3895,10 +3515,6 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -3946,10 +3562,6 @@ struct tevent_req *rpccli_lsa_SetSystemAccessAccount_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -3994,10 +3606,6 @@ static void rpccli_lsa_SetSystemAccessAccount_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -4036,10 +3644,6 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -4050,10 +3654,6 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -4104,10 +3704,6 @@ struct tevent_req *rpccli_lsa_OpenTrustedDomain_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_OpenTrustedDomain_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -4159,10 +3755,6 @@ static void rpccli_lsa_OpenTrustedDomain_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -4204,10 +3796,6 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
        r.in.sid = sid;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -4218,10 +3806,6 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -4271,10 +3855,6 @@ struct tevent_req *rpccli_lsa_QueryTrustedDomainInfo_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QueryTrustedDomainInfo_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -4326,10 +3906,6 @@ static void rpccli_lsa_QueryTrustedDomainInfo_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -4369,10 +3945,6 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
        r.in.trustdom_handle = trustdom_handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -4383,10 +3955,6 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -4436,10 +4004,6 @@ struct tevent_req *rpccli_lsa_SetInformationTrustedDomain_send(TALLOC_CTX *mem_c
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -4484,10 +4048,6 @@ static void rpccli_lsa_SetInformationTrustedDomain_done(struct tevent_req *subre
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -4528,10 +4088,6 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -4542,10 +4098,6 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -4596,10 +4148,6 @@ struct tevent_req *rpccli_lsa_OpenSecret_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_OpenSecret_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -4651,10 +4199,6 @@ static void rpccli_lsa_OpenSecret_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -4696,10 +4240,6 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
        r.in.name = name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -4710,10 +4250,6 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -4763,10 +4299,6 @@ struct tevent_req *rpccli_lsa_SetSecret_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetSecret, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -4811,10 +4343,6 @@ static void rpccli_lsa_SetSecret_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -4855,10 +4383,6 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
        r.in.new_val = new_val;
        r.in.old_val = old_val;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -4869,10 +4393,6 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -4929,10 +4449,6 @@ struct tevent_req *rpccli_lsa_QuerySecret_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QuerySecret_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -4995,10 +4511,6 @@ static void rpccli_lsa_QuerySecret_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -5043,10 +4555,6 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
        r.in.old_val = old_val;
        r.in.old_mtime = old_mtime;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -5057,10 +4565,6 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -5121,10 +4625,6 @@ struct tevent_req *rpccli_lsa_LookupPrivValue_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupPrivValue_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -5176,10 +4676,6 @@ static void rpccli_lsa_LookupPrivValue_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -5219,10 +4715,6 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.name = name;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -5233,10 +4725,6 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -5286,10 +4774,6 @@ struct tevent_req *rpccli_lsa_LookupPrivName_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupPrivName_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -5341,10 +4825,6 @@ static void rpccli_lsa_LookupPrivName_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -5384,10 +4864,6 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.luid = luid;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -5398,10 +4874,6 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -5457,10 +4929,6 @@ struct tevent_req *rpccli_lsa_LookupPrivDisplayName_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupPrivDisplayName_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -5513,10 +4981,6 @@ static void rpccli_lsa_LookupPrivDisplayName_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -5561,10 +5025,6 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
        r.in.language_id = language_id;
        r.in.language_id_sys = language_id_sys;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -5575,10 +5035,6 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -5626,10 +5082,6 @@ struct tevent_req *rpccli_lsa_DeleteObject_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_DeleteObject_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -5681,10 +5133,6 @@ static void rpccli_lsa_DeleteObject_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -5721,10 +5169,6 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -5735,10 +5179,6 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -5788,10 +5228,6 @@ struct tevent_req *rpccli_lsa_EnumAccountsWithUserRight_send(TALLOC_CTX *mem_ctx
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumAccountsWithUserRight_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -5843,10 +5279,6 @@ static void rpccli_lsa_EnumAccountsWithUserRight_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -5886,10 +5318,6 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.name = name;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -5900,10 +5328,6 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -5953,10 +5377,6 @@ struct tevent_req *rpccli_lsa_EnumAccountRights_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumAccountRights_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -6008,10 +5428,6 @@ static void rpccli_lsa_EnumAccountRights_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -6051,10 +5467,6 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.sid = sid;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -6065,10 +5477,6 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -6118,10 +5526,6 @@ struct tevent_req *rpccli_lsa_AddAccountRights_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -6166,10 +5570,6 @@ static void rpccli_lsa_AddAccountRights_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -6210,10 +5610,6 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
        r.in.sid = sid;
        r.in.rights = rights;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -6224,10 +5620,6 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -6278,10 +5670,6 @@ struct tevent_req *rpccli_lsa_RemoveAccountRights_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -6326,10 +5714,6 @@ static void rpccli_lsa_RemoveAccountRights_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -6372,10 +5756,6 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
        r.in.remove_all = remove_all;
        r.in.rights = rights;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -6386,10 +5766,6 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -6440,10 +5816,6 @@ struct tevent_req *rpccli_lsa_QueryTrustedDomainInfoBySid_send(TALLOC_CTX *mem_c
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QueryTrustedDomainInfoBySid_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -6495,10 +5867,6 @@ static void rpccli_lsa_QueryTrustedDomainInfoBySid_done(struct tevent_req *subre
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -6540,10 +5908,6 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
        r.in.dom_sid = dom_sid;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -6554,10 +5918,6 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -6609,10 +5969,6 @@ struct tevent_req *rpccli_lsa_SetTrustedDomainInfo_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -6657,10 +6013,6 @@ static void rpccli_lsa_SetTrustedDomainInfo_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -6703,10 +6055,6 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -6717,10 +6065,6 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -6767,10 +6111,6 @@ struct tevent_req *rpccli_lsa_DeleteTrustedDomain_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -6815,10 +6155,6 @@ static void rpccli_lsa_DeleteTrustedDomain_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -6857,10 +6193,6 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.dom_sid = dom_sid;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -6871,10 +6203,6 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -6923,10 +6251,6 @@ struct tevent_req *rpccli_lsa_StorePrivateData_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -6971,10 +6295,6 @@ static void rpccli_lsa_StorePrivateData_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -7015,10 +6335,6 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
        r.in.name = name;
        r.in.val = val;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -7029,10 +6345,6 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -7082,10 +6394,6 @@ struct tevent_req *rpccli_lsa_RetrievePrivateData_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_RetrievePrivateData_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -7137,10 +6445,6 @@ static void rpccli_lsa_RetrievePrivateData_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -7181,10 +6485,6 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
        r.in.name = name;
        r.in.val = val;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -7195,10 +6495,6 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -7250,10 +6546,6 @@ struct tevent_req *rpccli_lsa_OpenPolicy2_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_OpenPolicy2_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -7305,10 +6597,6 @@ static void rpccli_lsa_OpenPolicy2_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -7350,10 +6638,6 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
        r.in.attr = attr;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -7364,10 +6648,6 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -7419,10 +6699,6 @@ struct tevent_req *rpccli_lsa_GetUserName_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_GetUserName, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_GetUserName_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -7477,10 +6753,6 @@ static void rpccli_lsa_GetUserName_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -7521,10 +6793,6 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
        r.in.account_name = account_name;
        r.in.authority_name = authority_name;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_GetUserName, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -7535,10 +6803,6 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -7591,10 +6855,6 @@ struct tevent_req *rpccli_lsa_QueryInfoPolicy2_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QueryInfoPolicy2_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -7646,10 +6906,6 @@ static void rpccli_lsa_QueryInfoPolicy2_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -7689,10 +6945,6 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -7703,10 +6955,6 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -7756,10 +7004,6 @@ struct tevent_req *rpccli_lsa_SetInfoPolicy2_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -7804,10 +7048,6 @@ static void rpccli_lsa_SetInfoPolicy2_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -7848,10 +7088,6 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -7862,10 +7098,6 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -7916,10 +7148,6 @@ struct tevent_req *rpccli_lsa_QueryTrustedDomainInfoByName_send(TALLOC_CTX *mem_
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QueryTrustedDomainInfoByName_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -7971,10 +7199,6 @@ static void rpccli_lsa_QueryTrustedDomainInfoByName_done(struct tevent_req *subr
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -8016,10 +7240,6 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
        r.in.trusted_domain = trusted_domain;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -8030,10 +7250,6 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -8058,9 +7274,9 @@ struct tevent_req *rpccli_lsa_SetTrustedDomainInfoByName_send(TALLOC_CTX *mem_ct
                                                              struct tevent_context *ev,
                                                              struct rpc_pipe_client *cli,
                                                              struct policy_handle *_handle /* [in] [ref] */,
-                                                             struct lsa_String _trusted_domain /* [in]  */,
+                                                             struct lsa_String *_trusted_domain /* [in] [ref] */,
                                                              enum lsa_TrustDomInfoEnum _level /* [in]  */,
-                                                             union lsa_TrustedDomainInfo *_info /* [in] [unique,switch_is(level)] */)
+                                                             union lsa_TrustedDomainInfo *_info /* [in] [ref,switch_is(level)] */)
 {
        struct tevent_req *req;
        struct rpccli_lsa_SetTrustedDomainInfoByName_state *state;
@@ -8085,10 +7301,6 @@ struct tevent_req *rpccli_lsa_SetTrustedDomainInfoByName_send(TALLOC_CTX *mem_ct
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -8133,10 +7345,6 @@ static void rpccli_lsa_SetTrustedDomainInfoByName_done(struct tevent_req *subreq
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -8166,9 +7374,9 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName_recv(struct tevent_req *req,
 NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
                                               TALLOC_CTX *mem_ctx,
                                               struct policy_handle *handle /* [in] [ref] */,
-                                              struct lsa_String trusted_domain /* [in]  */,
+                                              struct lsa_String *trusted_domain /* [in] [ref] */,
                                               enum lsa_TrustDomInfoEnum level /* [in]  */,
-                                              union lsa_TrustedDomainInfo *info /* [in] [unique,switch_is(level)] */)
+                                              union lsa_TrustedDomainInfo *info /* [in] [ref,switch_is(level)] */)
 {
        struct lsa_SetTrustedDomainInfoByName r;
        NTSTATUS status;
@@ -8179,10 +7387,6 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -8193,10 +7397,6 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -8248,10 +7448,6 @@ struct tevent_req *rpccli_lsa_EnumTrustedDomainsEx_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_EnumTrustedDomainsEx_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -8304,10 +7500,6 @@ static void rpccli_lsa_EnumTrustedDomainsEx_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -8349,10 +7541,6 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
        r.in.resume_handle = resume_handle;
        r.in.max_size = max_size;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -8363,10 +7551,6 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -8421,10 +7605,6 @@ struct tevent_req *rpccli_lsa_CreateTrustedDomainEx_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_CreateTrustedDomainEx_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -8476,10 +7656,6 @@ static void rpccli_lsa_CreateTrustedDomainEx_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -8523,10 +7699,6 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
        r.in.auth_info = auth_info;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -8537,10 +7709,6 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -8587,10 +7755,6 @@ struct tevent_req *rpccli_lsa_CloseTrustedDomainEx_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_CloseTrustedDomainEx_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -8642,10 +7806,6 @@ static void rpccli_lsa_CloseTrustedDomainEx_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -8682,10 +7842,6 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
        /* In parameters */
        r.in.handle = handle;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -8696,10 +7852,6 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -8749,10 +7901,6 @@ struct tevent_req *rpccli_lsa_QueryDomainInformationPolicy_send(TALLOC_CTX *mem_
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_QueryDomainInformationPolicy_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -8804,10 +7952,6 @@ static void rpccli_lsa_QueryDomainInformationPolicy_done(struct tevent_req *subr
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -8847,10 +7991,6 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
        r.in.handle = handle;
        r.in.level = level;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -8861,10 +8001,6 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -8914,10 +8050,6 @@ struct tevent_req *rpccli_lsa_SetDomainInformationPolicy_send(TALLOC_CTX *mem_ct
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -8962,10 +8094,6 @@ static void rpccli_lsa_SetDomainInformationPolicy_done(struct tevent_req *subreq
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -9006,10 +8134,6 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
        r.in.level = level;
        r.in.info = info;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -9020,10 +8144,6 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -9074,10 +8194,6 @@ struct tevent_req *rpccli_lsa_OpenTrustedDomainByName_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_OpenTrustedDomainByName_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -9129,10 +8245,6 @@ static void rpccli_lsa_OpenTrustedDomainByName_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -9174,10 +8286,6 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
        r.in.name = name;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -9188,10 +8296,6 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -9235,10 +8339,6 @@ struct tevent_req *rpccli_lsa_TestCall_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_TestCall, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -9283,10 +8383,6 @@ static void rpccli_lsa_TestCall_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_TestCall, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -9321,10 +8417,6 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_TestCall, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -9335,10 +8427,6 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_TestCall, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -9367,8 +8455,8 @@ struct tevent_req *rpccli_lsa_LookupSids2_send(TALLOC_CTX *mem_ctx,
                                               struct lsa_TransNameArray2 *_names /* [in,out] [ref] */,
                                               enum lsa_LookupNamesLevel _level /* [in]  */,
                                               uint32_t *_count /* [in,out] [ref] */,
-                                              uint32_t _unknown1 /* [in]  */,
-                                              uint32_t _unknown2 /* [in]  */)
+                                              enum lsa_LookupOptions _lookup_options /* [in]  */,
+                                              enum lsa_ClientRevision _client_revision /* [in]  */)
 {
        struct tevent_req *req;
        struct rpccli_lsa_LookupSids2_state *state;
@@ -9388,8 +8476,8 @@ struct tevent_req *rpccli_lsa_LookupSids2_send(TALLOC_CTX *mem_ctx,
        state->orig.in.names = _names;
        state->orig.in.level = _level;
        state->orig.in.count = _count;
-       state->orig.in.unknown1 = _unknown1;
-       state->orig.in.unknown2 = _unknown2;
+       state->orig.in.lookup_options = _lookup_options;
+       state->orig.in.client_revision = _client_revision;
 
        /* Out parameters */
        state->orig.out.domains = _domains;
@@ -9399,10 +8487,6 @@ struct tevent_req *rpccli_lsa_LookupSids2_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupSids2_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -9456,10 +8540,6 @@ static void rpccli_lsa_LookupSids2_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -9494,8 +8574,8 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
                                struct lsa_TransNameArray2 *names /* [in,out] [ref] */,
                                enum lsa_LookupNamesLevel level /* [in]  */,
                                uint32_t *count /* [in,out] [ref] */,
-                               uint32_t unknown1 /* [in]  */,
-                               uint32_t unknown2 /* [in]  */)
+                               enum lsa_LookupOptions lookup_options /* [in]  */,
+                               enum lsa_ClientRevision client_revision /* [in]  */)
 {
        struct lsa_LookupSids2 r;
        NTSTATUS status;
@@ -9506,12 +8586,8 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
        r.in.names = names;
        r.in.level = level;
        r.in.count = count;
-       r.in.unknown1 = unknown1;
-       r.in.unknown2 = unknown2;
-
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r);
-       }
+       r.in.lookup_options = lookup_options;
+       r.in.client_revision = client_revision;
 
        status = cli->dispatch(cli,
                                mem_ctx,
@@ -9523,10 +8599,6 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -9559,8 +8631,8 @@ struct tevent_req *rpccli_lsa_LookupNames2_send(TALLOC_CTX *mem_ctx,
                                                struct lsa_TransSidArray2 *_sids /* [in,out] [ref] */,
                                                enum lsa_LookupNamesLevel _level /* [in]  */,
                                                uint32_t *_count /* [in,out] [ref] */,
-                                               uint32_t _lookup_options /* [in]  */,
-                                               uint32_t _client_revision /* [in]  */)
+                                               enum lsa_LookupOptions _lookup_options /* [in]  */,
+                                               enum lsa_ClientRevision _client_revision /* [in]  */)
 {
        struct tevent_req *req;
        struct rpccli_lsa_LookupNames2_state *state;
@@ -9592,10 +8664,6 @@ struct tevent_req *rpccli_lsa_LookupNames2_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupNames2_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -9649,10 +8717,6 @@ static void rpccli_lsa_LookupNames2_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -9688,8 +8752,8 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
                                 struct lsa_TransSidArray2 *sids /* [in,out] [ref] */,
                                 enum lsa_LookupNamesLevel level /* [in]  */,
                                 uint32_t *count /* [in,out] [ref] */,
-                                uint32_t lookup_options /* [in]  */,
-                                uint32_t client_revision /* [in]  */)
+                                enum lsa_LookupOptions lookup_options /* [in]  */,
+                                enum lsa_ClientRevision client_revision /* [in]  */)
 {
        struct lsa_LookupNames2 r;
        NTSTATUS status;
@@ -9704,10 +8768,6 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
        r.in.lookup_options = lookup_options;
        r.in.client_revision = client_revision;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -9718,10 +8778,6 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -9777,10 +8833,6 @@ struct tevent_req *rpccli_lsa_CreateTrustedDomainEx2_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_CreateTrustedDomainEx2_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -9832,10 +8884,6 @@ static void rpccli_lsa_CreateTrustedDomainEx2_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -9879,10 +8927,6 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
        r.in.auth_info = auth_info;
        r.in.access_mask = access_mask;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -9893,10 +8937,6 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -9940,10 +8980,6 @@ struct tevent_req *rpccli_lsa_CREDRWRITE_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -9988,10 +9024,6 @@ static void rpccli_lsa_CREDRWRITE_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10026,10 +9058,6 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10040,10 +9068,6 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10086,10 +9110,6 @@ struct tevent_req *rpccli_lsa_CREDRREAD_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -10134,10 +9154,6 @@ static void rpccli_lsa_CREDRREAD_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10172,10 +9188,6 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10186,10 +9198,6 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10232,10 +9240,6 @@ struct tevent_req *rpccli_lsa_CREDRENUMERATE_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -10280,10 +9284,6 @@ static void rpccli_lsa_CREDRENUMERATE_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10318,10 +9318,6 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10332,10 +9328,6 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10378,10 +9370,6 @@ struct tevent_req *rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS_send(TALLOC_CTX *mem_c
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -10426,10 +9414,6 @@ static void rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS_done(struct tevent_req *subre
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10464,10 +9448,6 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10478,10 +9458,6 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10524,10 +9500,6 @@ struct tevent_req *rpccli_lsa_CREDRREADDOMAINCREDENTIALS_send(TALLOC_CTX *mem_ct
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -10572,10 +9544,6 @@ static void rpccli_lsa_CREDRREADDOMAINCREDENTIALS_done(struct tevent_req *subreq
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10610,10 +9578,6 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10624,10 +9588,6 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10670,10 +9630,6 @@ struct tevent_req *rpccli_lsa_CREDRDELETE_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -10718,10 +9674,6 @@ static void rpccli_lsa_CREDRDELETE_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10756,10 +9708,6 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10770,10 +9718,6 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10816,10 +9760,6 @@ struct tevent_req *rpccli_lsa_CREDRGETTARGETINFO_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -10864,10 +9804,6 @@ static void rpccli_lsa_CREDRGETTARGETINFO_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -10902,10 +9838,6 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -10916,10 +9848,6 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -10962,10 +9890,6 @@ struct tevent_req *rpccli_lsa_CREDRPROFILELOADED_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -11010,10 +9934,6 @@ static void rpccli_lsa_CREDRPROFILELOADED_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11048,10 +9968,6 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -11062,10 +9978,6 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -11095,8 +10007,8 @@ struct tevent_req *rpccli_lsa_LookupNames3_send(TALLOC_CTX *mem_ctx,
                                                struct lsa_TransSidArray3 *_sids /* [in,out] [ref] */,
                                                enum lsa_LookupNamesLevel _level /* [in]  */,
                                                uint32_t *_count /* [in,out] [ref] */,
-                                               uint32_t _lookup_options /* [in]  */,
-                                               uint32_t _client_revision /* [in]  */)
+                                               enum lsa_LookupOptions _lookup_options /* [in]  */,
+                                               enum lsa_ClientRevision _client_revision /* [in]  */)
 {
        struct tevent_req *req;
        struct rpccli_lsa_LookupNames3_state *state;
@@ -11128,10 +10040,6 @@ struct tevent_req *rpccli_lsa_LookupNames3_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupNames3_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -11185,10 +10093,6 @@ static void rpccli_lsa_LookupNames3_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11224,8 +10128,8 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
                                 struct lsa_TransSidArray3 *sids /* [in,out] [ref] */,
                                 enum lsa_LookupNamesLevel level /* [in]  */,
                                 uint32_t *count /* [in,out] [ref] */,
-                                uint32_t lookup_options /* [in]  */,
-                                uint32_t client_revision /* [in]  */)
+                                enum lsa_LookupOptions lookup_options /* [in]  */,
+                                enum lsa_ClientRevision client_revision /* [in]  */)
 {
        struct lsa_LookupNames3 r;
        NTSTATUS status;
@@ -11240,10 +10144,6 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
        r.in.lookup_options = lookup_options;
        r.in.client_revision = client_revision;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -11254,10 +10154,6 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -11303,10 +10199,6 @@ struct tevent_req *rpccli_lsa_CREDRGETSESSIONTYPES_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -11351,10 +10243,6 @@ static void rpccli_lsa_CREDRGETSESSIONTYPES_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11389,10 +10277,6 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -11403,10 +10287,6 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -11449,10 +10329,6 @@ struct tevent_req *rpccli_lsa_LSARREGISTERAUDITEVENT_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -11497,10 +10373,6 @@ static void rpccli_lsa_LSARREGISTERAUDITEVENT_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11535,10 +10407,6 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -11549,10 +10417,6 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -11595,10 +10459,6 @@ struct tevent_req *rpccli_lsa_LSARGENAUDITEVENT_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -11643,10 +10503,6 @@ static void rpccli_lsa_LSARGENAUDITEVENT_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11681,10 +10537,6 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -11695,10 +10547,6 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -11741,10 +10589,6 @@ struct tevent_req *rpccli_lsa_LSARUNREGISTERAUDITEVENT_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -11789,10 +10633,6 @@ static void rpccli_lsa_LSARUNREGISTERAUDITEVENT_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11827,10 +10667,6 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -11841,10 +10677,6 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -11895,10 +10727,6 @@ struct tevent_req *rpccli_lsa_lsaRQueryForestTrustInformation_send(TALLOC_CTX *m
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_lsaRQueryForestTrustInformation, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_lsaRQueryForestTrustInformation_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -11950,10 +10778,6 @@ static void rpccli_lsa_lsaRQueryForestTrustInformation_done(struct tevent_req *s
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_lsaRQueryForestTrustInformation, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -11995,10 +10819,6 @@ NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
        r.in.trusted_domain_name = trusted_domain_name;
        r.in.unknown = unknown;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_lsaRQueryForestTrustInformation, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -12009,10 +10829,6 @@ NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_lsaRQueryForestTrustInformation, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -12024,25 +10840,31 @@ NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
        return r.out.result;
 }
 
-struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state {
-       struct lsa_LSARSETFORESTTRUSTINFORMATION orig;
-       struct lsa_LSARSETFORESTTRUSTINFORMATION tmp;
+struct rpccli_lsa_lsaRSetForestTrustInformation_state {
+       struct lsa_lsaRSetForestTrustInformation orig;
+       struct lsa_lsaRSetForestTrustInformation tmp;
        TALLOC_CTX *out_mem_ctx;
        NTSTATUS (*dispatch_recv)(struct tevent_req *req, TALLOC_CTX *mem_ctx);
 };
 
-static void rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_done(struct tevent_req *subreq);
+static void rpccli_lsa_lsaRSetForestTrustInformation_done(struct tevent_req *subreq);
 
-struct tevent_req *rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_send(TALLOC_CTX *mem_ctx,
+struct tevent_req *rpccli_lsa_lsaRSetForestTrustInformation_send(TALLOC_CTX *mem_ctx,
                                                                 struct tevent_context *ev,
-                                                                struct rpc_pipe_client *cli)
+                                                                struct rpc_pipe_client *cli,
+                                                                struct policy_handle *_handle /* [in] [ref] */,
+                                                                struct lsa_StringLarge *_trusted_domain_name /* [in] [ref] */,
+                                                                uint16_t _highest_record_type /* [in]  */,
+                                                                struct lsa_ForestTrustInformation *_forest_trust_info /* [in] [ref] */,
+                                                                uint8_t _check_only /* [in]  */,
+                                                                struct lsa_ForestTrustCollisionInfo **_collision_info /* [out] [ref] */)
 {
        struct tevent_req *req;
-       struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state *state;
+       struct rpccli_lsa_lsaRSetForestTrustInformation_state *state;
        struct tevent_req *subreq;
 
        req = tevent_req_create(mem_ctx, &state,
-                               struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state);
+                               struct rpccli_lsa_lsaRSetForestTrustInformation_state);
        if (req == NULL) {
                return NULL;
        }
@@ -12050,14 +10872,22 @@ struct tevent_req *rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_send(TALLOC_CTX *mem
        state->dispatch_recv = cli->dispatch_recv;
 
        /* In parameters */
+       state->orig.in.handle = _handle;
+       state->orig.in.trusted_domain_name = _trusted_domain_name;
+       state->orig.in.highest_record_type = _highest_record_type;
+       state->orig.in.forest_trust_info = _forest_trust_info;
+       state->orig.in.check_only = _check_only;
 
        /* Out parameters */
+       state->orig.out.collision_info = _collision_info;
 
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &state->orig);
+       state->out_mem_ctx = talloc_named_const(state, 0,
+                            "rpccli_lsa_lsaRSetForestTrustInformation_out_memory");
+       if (tevent_req_nomem(state->out_mem_ctx, req)) {
+               return tevent_req_post(req, ev);
        }
 
        /* make a temporary copy, that we pass to the dispatch function */
@@ -12070,16 +10900,16 @@ struct tevent_req *rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_send(TALLOC_CTX *mem
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
        }
-       tevent_req_set_callback(subreq, rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_done, req);
+       tevent_req_set_callback(subreq, rpccli_lsa_lsaRSetForestTrustInformation_done, req);
        return req;
 }
 
-static void rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_done(struct tevent_req *subreq)
+static void rpccli_lsa_lsaRSetForestTrustInformation_done(struct tevent_req *subreq)
 {
        struct tevent_req *req = tevent_req_callback_data(
                subreq, struct tevent_req);
-       struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state *state = tevent_req_data(
-               req, struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state);
+       struct rpccli_lsa_lsaRSetForestTrustInformation_state *state = tevent_req_data(
+               req, struct rpccli_lsa_lsaRSetForestTrustInformation_state);
        NTSTATUS status;
        TALLOC_CTX *mem_ctx;
 
@@ -12097,6 +10927,7 @@ static void rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_done(struct tevent_req *sub
        }
 
        /* Copy out parameters */
+       *state->orig.out.collision_info = *state->tmp.out.collision_info;
 
        /* Copy result */
        state->orig.out.result = state->tmp.out.result;
@@ -12104,19 +10935,15 @@ static void rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_done(struct tevent_req *sub
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
-NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_recv(struct tevent_req *req,
+NTSTATUS rpccli_lsa_lsaRSetForestTrustInformation_recv(struct tevent_req *req,
                                                       TALLOC_CTX *mem_ctx,
                                                       NTSTATUS *result)
 {
-       struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state *state = tevent_req_data(
-               req, struct rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_state);
+       struct rpccli_lsa_lsaRSetForestTrustInformation_state *state = tevent_req_data(
+               req, struct rpccli_lsa_lsaRSetForestTrustInformation_state);
        NTSTATUS status;
 
        if (tevent_req_is_nterror(req, &status)) {
@@ -12134,17 +10961,24 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION_recv(struct tevent_req *req,
        return NT_STATUS_OK;
 }
 
-NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
-                                                 TALLOC_CTX *mem_ctx)
+NTSTATUS rpccli_lsa_lsaRSetForestTrustInformation(struct rpc_pipe_client *cli,
+                                                 TALLOC_CTX *mem_ctx,
+                                                 struct policy_handle *handle /* [in] [ref] */,
+                                                 struct lsa_StringLarge *trusted_domain_name /* [in] [ref] */,
+                                                 uint16_t highest_record_type /* [in]  */,
+                                                 struct lsa_ForestTrustInformation *forest_trust_info /* [in] [ref] */,
+                                                 uint8_t check_only /* [in]  */,
+                                                 struct lsa_ForestTrustCollisionInfo **collision_info /* [out] [ref] */)
 {
-       struct lsa_LSARSETFORESTTRUSTINFORMATION r;
+       struct lsa_lsaRSetForestTrustInformation r;
        NTSTATUS status;
 
        /* In parameters */
-
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
-       }
+       r.in.handle = handle;
+       r.in.trusted_domain_name = trusted_domain_name;
+       r.in.highest_record_type = highest_record_type;
+       r.in.forest_trust_info = forest_trust_info;
+       r.in.check_only = check_only;
 
        status = cli->dispatch(cli,
                                mem_ctx,
@@ -12156,15 +10990,12 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
 
        /* Return variables */
+       *collision_info = *r.out.collision_info;
 
        /* Return result */
        return r.out.result;
@@ -12202,10 +11033,6 @@ struct tevent_req *rpccli_lsa_CREDRRENAME_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -12250,10 +11077,6 @@ static void rpccli_lsa_CREDRRENAME_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -12288,10 +11111,6 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -12302,10 +11121,6 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -12333,8 +11148,8 @@ struct tevent_req *rpccli_lsa_LookupSids3_send(TALLOC_CTX *mem_ctx,
                                               struct lsa_TransNameArray2 *_names /* [in,out] [ref] */,
                                               enum lsa_LookupNamesLevel _level /* [in]  */,
                                               uint32_t *_count /* [in,out] [ref] */,
-                                              uint32_t _unknown1 /* [in]  */,
-                                              uint32_t _unknown2 /* [in]  */)
+                                              enum lsa_LookupOptions _lookup_options /* [in]  */,
+                                              enum lsa_ClientRevision _client_revision /* [in]  */)
 {
        struct tevent_req *req;
        struct rpccli_lsa_LookupSids3_state *state;
@@ -12353,8 +11168,8 @@ struct tevent_req *rpccli_lsa_LookupSids3_send(TALLOC_CTX *mem_ctx,
        state->orig.in.names = _names;
        state->orig.in.level = _level;
        state->orig.in.count = _count;
-       state->orig.in.unknown1 = _unknown1;
-       state->orig.in.unknown2 = _unknown2;
+       state->orig.in.lookup_options = _lookup_options;
+       state->orig.in.client_revision = _client_revision;
 
        /* Out parameters */
        state->orig.out.domains = _domains;
@@ -12364,10 +11179,6 @@ struct tevent_req *rpccli_lsa_LookupSids3_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupSids3_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -12421,10 +11232,6 @@ static void rpccli_lsa_LookupSids3_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -12458,8 +11265,8 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
                                struct lsa_TransNameArray2 *names /* [in,out] [ref] */,
                                enum lsa_LookupNamesLevel level /* [in]  */,
                                uint32_t *count /* [in,out] [ref] */,
-                               uint32_t unknown1 /* [in]  */,
-                               uint32_t unknown2 /* [in]  */)
+                               enum lsa_LookupOptions lookup_options /* [in]  */,
+                               enum lsa_ClientRevision client_revision /* [in]  */)
 {
        struct lsa_LookupSids3 r;
        NTSTATUS status;
@@ -12469,12 +11276,8 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
        r.in.names = names;
        r.in.level = level;
        r.in.count = count;
-       r.in.unknown1 = unknown1;
-       r.in.unknown2 = unknown2;
-
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r);
-       }
+       r.in.lookup_options = lookup_options;
+       r.in.client_revision = client_revision;
 
        status = cli->dispatch(cli,
                                mem_ctx,
@@ -12486,10 +11289,6 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -12521,8 +11320,8 @@ struct tevent_req *rpccli_lsa_LookupNames4_send(TALLOC_CTX *mem_ctx,
                                                struct lsa_TransSidArray3 *_sids /* [in,out] [ref] */,
                                                enum lsa_LookupNamesLevel _level /* [in]  */,
                                                uint32_t *_count /* [in,out] [ref] */,
-                                               uint32_t _lookup_options /* [in]  */,
-                                               uint32_t _client_revision /* [in]  */)
+                                               enum lsa_LookupOptions _lookup_options /* [in]  */,
+                                               enum lsa_ClientRevision _client_revision /* [in]  */)
 {
        struct tevent_req *req;
        struct rpccli_lsa_LookupNames4_state *state;
@@ -12553,10 +11352,6 @@ struct tevent_req *rpccli_lsa_LookupNames4_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &state->orig);
-       }
-
        state->out_mem_ctx = talloc_named_const(state, 0,
                             "rpccli_lsa_LookupNames4_out_memory");
        if (tevent_req_nomem(state->out_mem_ctx, req)) {
@@ -12610,10 +11405,6 @@ static void rpccli_lsa_LookupNames4_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -12648,8 +11439,8 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
                                 struct lsa_TransSidArray3 *sids /* [in,out] [ref] */,
                                 enum lsa_LookupNamesLevel level /* [in]  */,
                                 uint32_t *count /* [in,out] [ref] */,
-                                uint32_t lookup_options /* [in]  */,
-                                uint32_t client_revision /* [in]  */)
+                                enum lsa_LookupOptions lookup_options /* [in]  */,
+                                enum lsa_ClientRevision client_revision /* [in]  */)
 {
        struct lsa_LookupNames4 r;
        NTSTATUS status;
@@ -12663,10 +11454,6 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
        r.in.lookup_options = lookup_options;
        r.in.client_revision = client_revision;
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -12677,10 +11464,6 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -12726,10 +11509,6 @@ struct tevent_req *rpccli_lsa_LSAROPENPOLICYSCE_send(TALLOC_CTX *mem_ctx,
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -12774,10 +11553,6 @@ static void rpccli_lsa_LSAROPENPOLICYSCE_done(struct tevent_req *subreq)
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -12812,10 +11587,6 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -12826,10 +11597,6 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -12872,10 +11639,6 @@ struct tevent_req *rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_send(TALLOC_CTX
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -12920,10 +11683,6 @@ static void rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE_done(struct tevent_req
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -12958,10 +11717,6 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -12972,10 +11727,6 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -13018,10 +11769,6 @@ struct tevent_req *rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_send(TALLOC_C
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -13066,10 +11813,6 @@ static void rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE_done(struct tevent_r
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -13104,10 +11847,6 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -13118,10 +11857,6 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }
@@ -13164,10 +11899,6 @@ struct tevent_req *rpccli_lsa_LSARADTREPORTSECURITYEVENT_send(TALLOC_CTX *mem_ct
        /* Result */
        ZERO_STRUCT(state->orig.out.result);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &state->orig);
-       }
-
        /* make a temporary copy, that we pass to the dispatch function */
        state->tmp = state->orig;
 
@@ -13212,10 +11943,6 @@ static void rpccli_lsa_LSARADTREPORTSECURITYEVENT_done(struct tevent_req *subreq
        /* Reset temporary structure */
        ZERO_STRUCT(state->tmp);
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &state->orig);
-       }
-
        tevent_req_done(req);
 }
 
@@ -13250,10 +11977,6 @@ NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
 
        /* In parameters */
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
-       }
-
        status = cli->dispatch(cli,
                                mem_ctx,
                                &ndr_table_lsarpc,
@@ -13264,10 +11987,6 @@ NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
                return status;
        }
 
-       if (DEBUGLEVEL >= 10) {
-               NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
-       }
-
        if (NT_STATUS_IS_ERR(status)) {
                return status;
        }