return true;
}
-static bool api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
+static bool api_lsa_lsaRSetForestTrustInformation(pipes_struct *p)
{
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
enum ndr_err_code ndr_err;
DATA_BLOB blob;
- struct lsa_LSARSETFORESTTRUSTINFORMATION *r;
+ struct lsa_lsaRSetForestTrustInformation *r;
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARSETFORESTTRUSTINFORMATION];
- r = talloc(talloc_tos(), struct lsa_LSARSETFORESTTRUSTINFORMATION);
+ r = talloc(talloc_tos(), struct lsa_lsaRSetForestTrustInformation);
if (r == NULL) {
return false;
}
}
if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, r);
+ NDR_PRINT_IN_DEBUG(lsa_lsaRSetForestTrustInformation, r);
}
- r->out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(p, r);
+ ZERO_STRUCT(r->out);
+ r->out.collision_info = talloc_zero(r, struct lsa_ForestTrustCollisionInfo *);
+ if (r->out.collision_info == NULL) {
+ talloc_free(r);
+ return false;
+ }
+
+ r->out.result = _lsa_lsaRSetForestTrustInformation(p, r);
if (p->rng_fault_state) {
talloc_free(r);
}
if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, r);
+ NDR_PRINT_OUT_DEBUG(lsa_lsaRSetForestTrustInformation, r);
}
push = ndr_push_init_ctx(r, NULL);
{"LSA_LSARGENAUDITEVENT", NDR_LSA_LSARGENAUDITEVENT, api_lsa_LSARGENAUDITEVENT},
{"LSA_LSARUNREGISTERAUDITEVENT", NDR_LSA_LSARUNREGISTERAUDITEVENT, api_lsa_LSARUNREGISTERAUDITEVENT},
{"LSA_LSARQUERYFORESTTRUSTINFORMATION", NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION, api_lsa_lsaRQueryForestTrustInformation},
- {"LSA_LSARSETFORESTTRUSTINFORMATION", NDR_LSA_LSARSETFORESTTRUSTINFORMATION, api_lsa_LSARSETFORESTTRUSTINFORMATION},
+ {"LSA_LSARSETFORESTTRUSTINFORMATION", NDR_LSA_LSARSETFORESTTRUSTINFORMATION, api_lsa_lsaRSetForestTrustInformation},
{"LSA_CREDRRENAME", NDR_LSA_CREDRRENAME, api_lsa_CREDRRENAME},
{"LSA_LOOKUPSIDS3", NDR_LSA_LOOKUPSIDS3, api_lsa_LookupSids3},
{"LSA_LOOKUPNAMES4", NDR_LSA_LOOKUPNAMES4, api_lsa_LookupNames4},
r->out.resume_handle = r->in.resume_handle;
r->out.privs = talloc_zero(mem_ctx, struct lsa_PrivArray);
if (r->out.privs == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumPrivs(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.sdbuf = talloc_zero(mem_ctx, struct sec_desc_buf *);
if (r->out.sdbuf == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QuerySecurity(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_OpenPolicy(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(mem_ctx, union lsa_PolicyInformation *);
if (r->out.info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QueryInfoPolicy(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.acct_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.acct_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_CreateAccount(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.sids = talloc_zero(mem_ctx, struct lsa_SidArray);
if (r->out.sids == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumAccounts(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_CreateTrustedDomain(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.domains = talloc_zero(mem_ctx, struct lsa_DomainList);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumTrustDom(cli->pipes_struct, r);
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupNames(cli->pipes_struct, r);
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupSids(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.sec_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.sec_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_CreateSecret(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.acct_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.acct_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_OpenAccount(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.privs = talloc_zero(mem_ctx, struct lsa_PrivilegeSet *);
if (r->out.privs == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumPrivsAccount(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.access_mask = talloc_zero(mem_ctx, uint32_t);
if (r->out.access_mask == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_GetSystemAccessAccount(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_OpenTrustedDomain(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(mem_ctx, union lsa_TrustedDomainInfo *);
if (r->out.info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QueryTrustedDomainInfo(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.sec_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.sec_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_OpenSecret(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.luid = talloc_zero(mem_ctx, struct lsa_LUID);
if (r->out.luid == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupPrivValue(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.name = talloc_zero(mem_ctx, struct lsa_StringLarge *);
if (r->out.name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupPrivName(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.disp_name = talloc_zero(mem_ctx, struct lsa_StringLarge *);
if (r->out.disp_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.returned_language_id = talloc_zero(mem_ctx, uint16_t);
if (r->out.returned_language_id == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupPrivDisplayName(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.sids = talloc_zero(mem_ctx, struct lsa_SidArray);
if (r->out.sids == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumAccountsWithUserRight(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.rights = talloc_zero(mem_ctx, struct lsa_RightSet);
if (r->out.rights == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumAccountRights(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(mem_ctx, union lsa_TrustedDomainInfo *);
if (r->out.info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QueryTrustedDomainInfoBySid(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_OpenPolicy2(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(mem_ctx, union lsa_PolicyInformation *);
if (r->out.info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QueryInfoPolicy2(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(mem_ctx, union lsa_TrustedDomainInfo *);
if (r->out.info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QueryTrustedDomainInfoByName(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.domains = talloc_zero(mem_ctx, struct lsa_DomainListEx);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_EnumTrustedDomainsEx(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_CreateTrustedDomainEx(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.info = talloc_zero(mem_ctx, union lsa_DomainInformationPolicy *);
if (r->out.info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_QueryDomainInformationPolicy(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_OpenTrustedDomainByName(cli->pipes_struct, r);
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupSids2(cli->pipes_struct, r);
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupNames2(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.trustdom_handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.trustdom_handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_CreateTrustedDomainEx2(cli->pipes_struct, r);
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupNames3(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.forest_trust_info = talloc_zero(mem_ctx, struct lsa_ForestTrustInformation *);
if (r->out.forest_trust_info == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_lsaRQueryForestTrustInformation(cli->pipes_struct, r);
}
case NDR_LSA_LSARSETFORESTTRUSTINFORMATION: {
- struct lsa_LSARSETFORESTTRUSTINFORMATION *r = (struct lsa_LSARSETFORESTTRUSTINFORMATION *)_r;
- r->out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(cli->pipes_struct, r);
+ struct lsa_lsaRSetForestTrustInformation *r = (struct lsa_lsaRSetForestTrustInformation *)_r;
+ ZERO_STRUCT(r->out);
+ r->out.collision_info = talloc_zero(mem_ctx, struct lsa_ForestTrustCollisionInfo *);
+ if (r->out.collision_info == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+
+ r->out.result = _lsa_lsaRSetForestTrustInformation(cli->pipes_struct, r);
return NT_STATUS_OK;
}
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupSids3(cli->pipes_struct, r);
r->out.count = r->in.count;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList *);
if (r->out.domains == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _lsa_LookupNames4(cli->pipes_struct, r);