mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
Merge lsarpc.idl from samba4 and rerun make idl.
Guenther (This used to be commit d9c8a2271d5d4ff845f1fe5986a2c63d79c41415)
This commit is contained in:
parent
0331ff72f0
commit
587a2dbf8d
@ -87,27 +87,8 @@
|
||||
|
||||
#define LSA_AUDIT_NUM_CATEGORIES_NT4 7
|
||||
#define LSA_AUDIT_NUM_CATEGORIES_WIN2K 9
|
||||
|
||||
#define LSA_AUDIT_NUM_CATEGORIES LSA_AUDIT_NUM_CATEGORIES_NT4
|
||||
|
||||
#define LSA_AUDIT_POLICY_NONE 0x00
|
||||
#define LSA_AUDIT_POLICY_SUCCESS 0x01
|
||||
#define LSA_AUDIT_POLICY_FAILURE 0x02
|
||||
#define LSA_AUDIT_POLICY_ALL (LSA_AUDIT_POLICY_SUCCESS|LSA_AUDIT_POLICY_FAILURE)
|
||||
#define LSA_AUDIT_POLICY_CLEAR 0x04
|
||||
|
||||
enum lsa_audit_categories {
|
||||
LSA_AUDIT_CATEGORY_SYSTEM = 0,
|
||||
LSA_AUDIT_CATEGORY_LOGON = 1,
|
||||
LSA_AUDIT_CATEGORY_FILE_AND_OBJECT_ACCESS,
|
||||
LSA_AUDIT_CATEGORY_USE_OF_USER_RIGHTS,
|
||||
LSA_AUDIT_CATEGORY_PROCCESS_TRACKING,
|
||||
LSA_AUDIT_CATEGORY_SECURITY_POLICY_CHANGES,
|
||||
LSA_AUDIT_CATEGORY_ACCOUNT_MANAGEMENT,
|
||||
LSA_AUDIT_CATEGORY_DIRECTORY_SERVICE_ACCESS, /* only in win2k/2k3 */
|
||||
LSA_AUDIT_CATEGORY_ACCOUNT_LOGON /* only in win2k/2k3 */
|
||||
};
|
||||
|
||||
/* level 1 is auditing settings */
|
||||
typedef struct dom_query_1
|
||||
{
|
||||
|
@ -609,7 +609,7 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count)
|
||||
{
|
||||
struct lsa_LookupNames r;
|
||||
@ -2528,7 +2528,7 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray2 *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count,
|
||||
uint32_t unknown1,
|
||||
uint32_t unknown2)
|
||||
@ -2920,7 +2920,7 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray3 *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count,
|
||||
uint32_t unknown1,
|
||||
uint32_t unknown2)
|
||||
@ -3120,16 +3120,23 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
|
||||
return r.out.result;
|
||||
}
|
||||
|
||||
NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx)
|
||||
NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct policy_handle *handle,
|
||||
struct lsa_String *trusted_domain_name,
|
||||
uint16_t unknown,
|
||||
struct lsa_ForestTrustInformation **forest_trust_info)
|
||||
{
|
||||
struct lsa_LSARQUERYFORESTTRUSTINFORMATION r;
|
||||
struct lsa_lsaRQueryForestTrustInformation r;
|
||||
NTSTATUS status;
|
||||
|
||||
/* In parameters */
|
||||
r.in.handle = handle;
|
||||
r.in.trusted_domain_name = trusted_domain_name;
|
||||
r.in.unknown = unknown;
|
||||
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
|
||||
NDR_PRINT_IN_DEBUG(lsa_lsaRQueryForestTrustInformation, &r);
|
||||
}
|
||||
|
||||
status = cli_do_rpc_ndr(cli,
|
||||
@ -3144,7 +3151,7 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
|
||||
}
|
||||
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
|
||||
NDR_PRINT_OUT_DEBUG(lsa_lsaRQueryForestTrustInformation, &r);
|
||||
}
|
||||
|
||||
if (NT_STATUS_IS_ERR(status)) {
|
||||
@ -3152,6 +3159,7 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
|
||||
}
|
||||
|
||||
/* Return variables */
|
||||
*forest_trust_info = *r.out.forest_trust_info;
|
||||
|
||||
/* Return result */
|
||||
return r.out.result;
|
||||
@ -3292,7 +3300,7 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray3 *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count,
|
||||
uint32_t unknown1,
|
||||
uint32_t unknown2)
|
||||
|
@ -71,7 +71,7 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count);
|
||||
NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
@ -280,7 +280,7 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray2 *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count,
|
||||
uint32_t unknown1,
|
||||
uint32_t unknown2);
|
||||
@ -309,7 +309,7 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray3 *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count,
|
||||
uint32_t unknown1,
|
||||
uint32_t unknown2);
|
||||
@ -321,8 +321,12 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx);
|
||||
NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx);
|
||||
NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx);
|
||||
NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct policy_handle *handle,
|
||||
struct lsa_String *trusted_domain_name,
|
||||
uint16_t unknown,
|
||||
struct lsa_ForestTrustInformation **forest_trust_info);
|
||||
NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx);
|
||||
NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
|
||||
@ -342,7 +346,7 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
|
||||
struct lsa_String *names,
|
||||
struct lsa_RefDomainList *domains,
|
||||
struct lsa_TransSidArray3 *sids,
|
||||
uint16_t level,
|
||||
enum lsa_LookupNamesLevel level,
|
||||
uint32_t *count,
|
||||
uint32_t unknown1,
|
||||
uint32_t unknown2);
|
||||
|
@ -75,9 +75,55 @@ struct lsa_AuditLogInfo {
|
||||
uint32_t unknown;
|
||||
};
|
||||
|
||||
enum lsa_PolicyAuditPolicy
|
||||
#ifndef USE_UINT_ENUMS
|
||||
{
|
||||
LSA_AUDIT_POLICY_NONE=0,
|
||||
LSA_AUDIT_POLICY_SUCCESS=1,
|
||||
LSA_AUDIT_POLICY_FAILURE=2,
|
||||
LSA_AUDIT_POLICY_ALL=(LSA_AUDIT_POLICY_SUCCESS|LSA_AUDIT_POLICY_FAILURE),
|
||||
LSA_AUDIT_POLICY_CLEAR=4
|
||||
}
|
||||
#else
|
||||
{ __donnot_use_enum_lsa_PolicyAuditPolicy=0x7FFFFFFF}
|
||||
#define LSA_AUDIT_POLICY_NONE ( 0 )
|
||||
#define LSA_AUDIT_POLICY_SUCCESS ( 1 )
|
||||
#define LSA_AUDIT_POLICY_FAILURE ( 2 )
|
||||
#define LSA_AUDIT_POLICY_ALL ( (LSA_AUDIT_POLICY_SUCCESS|LSA_AUDIT_POLICY_FAILURE) )
|
||||
#define LSA_AUDIT_POLICY_CLEAR ( 4 )
|
||||
#endif
|
||||
;
|
||||
|
||||
enum lsa_PolicyAuditEventType
|
||||
#ifndef USE_UINT_ENUMS
|
||||
{
|
||||
LSA_AUDIT_CATEGORY_SYSTEM=0,
|
||||
LSA_AUDIT_CATEGORY_LOGON=1,
|
||||
LSA_AUDIT_CATEGORY_FILE_AND_OBJECT_ACCESS=2,
|
||||
LSA_AUDIT_CATEGORY_USE_OF_USER_RIGHTS=3,
|
||||
LSA_AUDIT_CATEGORY_PROCCESS_TRACKING=4,
|
||||
LSA_AUDIT_CATEGORY_SECURITY_POLICY_CHANGES=5,
|
||||
LSA_AUDIT_CATEGORY_ACCOUNT_MANAGEMENT=6,
|
||||
LSA_AUDIT_CATEGORY_DIRECTORY_SERVICE_ACCESS=7,
|
||||
LSA_AUDIT_CATEGORY_ACCOUNT_LOGON=8
|
||||
}
|
||||
#else
|
||||
{ __donnot_use_enum_lsa_PolicyAuditEventType=0x7FFFFFFF}
|
||||
#define LSA_AUDIT_CATEGORY_SYSTEM ( 0 )
|
||||
#define LSA_AUDIT_CATEGORY_LOGON ( 1 )
|
||||
#define LSA_AUDIT_CATEGORY_FILE_AND_OBJECT_ACCESS ( 2 )
|
||||
#define LSA_AUDIT_CATEGORY_USE_OF_USER_RIGHTS ( 3 )
|
||||
#define LSA_AUDIT_CATEGORY_PROCCESS_TRACKING ( 4 )
|
||||
#define LSA_AUDIT_CATEGORY_SECURITY_POLICY_CHANGES ( 5 )
|
||||
#define LSA_AUDIT_CATEGORY_ACCOUNT_MANAGEMENT ( 6 )
|
||||
#define LSA_AUDIT_CATEGORY_DIRECTORY_SERVICE_ACCESS ( 7 )
|
||||
#define LSA_AUDIT_CATEGORY_ACCOUNT_LOGON ( 8 )
|
||||
#endif
|
||||
;
|
||||
|
||||
struct lsa_AuditEventsInfo {
|
||||
uint32_t auditing_mode;
|
||||
uint32_t *settings;/* [unique,size_is(count)] */
|
||||
enum lsa_PolicyAuditPolicy *settings;/* [unique,size_is(count)] */
|
||||
uint32_t count;
|
||||
};
|
||||
|
||||
@ -240,6 +286,27 @@ struct lsa_RefDomainList {
|
||||
uint32_t max_size;
|
||||
};
|
||||
|
||||
enum lsa_LookupNamesLevel
|
||||
#ifndef USE_UINT_ENUMS
|
||||
{
|
||||
LSA_LOOKUP_NAMES_ALL=1,
|
||||
LSA_LOOKUP_NAMES_DOMAINS_ONLY=2,
|
||||
LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY=3,
|
||||
LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY=4,
|
||||
LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY=5,
|
||||
LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2=6
|
||||
}
|
||||
#else
|
||||
{ __donnot_use_enum_lsa_LookupNamesLevel=0x7FFFFFFF}
|
||||
#define LSA_LOOKUP_NAMES_ALL ( 1 )
|
||||
#define LSA_LOOKUP_NAMES_DOMAINS_ONLY ( 2 )
|
||||
#define LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY ( 3 )
|
||||
#define LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY ( 4 )
|
||||
#define LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY ( 5 )
|
||||
#define LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2 ( 6 )
|
||||
#endif
|
||||
;
|
||||
|
||||
struct lsa_TranslatedName {
|
||||
enum lsa_SidType sid_type;
|
||||
struct lsa_String name;
|
||||
@ -464,6 +531,53 @@ struct lsa_TransSidArray3 {
|
||||
struct lsa_TranslatedSid3 *sids;/* [unique,size_is(count)] */
|
||||
};
|
||||
|
||||
struct lsa_ForestTrustBinaryData {
|
||||
uint32_t length;/* [range(0 131072)] */
|
||||
uint8_t *data;/* [unique,size_is(length)] */
|
||||
};
|
||||
|
||||
struct lsa_ForestTrustDomainInfo {
|
||||
struct dom_sid2 *domain_sid;/* [unique] */
|
||||
struct lsa_StringLarge dns_domain_name;
|
||||
struct lsa_StringLarge netbios_domain_name;
|
||||
};
|
||||
|
||||
union lsa_ForestTrustData {
|
||||
struct lsa_String top_level_name;/* [case(LSA_FOREST_TRUST_TOP_LEVEL_NAME)] */
|
||||
struct lsa_StringLarge top_level_name_ex;/* [case(LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX)] */
|
||||
struct lsa_ForestTrustDomainInfo domain_info;/* [case(LSA_FOREST_TRUST_DOMAIN_INFO)] */
|
||||
struct lsa_ForestTrustBinaryData data;/* [default] */
|
||||
}/* [switch_type(uint32)] */;
|
||||
|
||||
enum lsa_ForestTrustRecordType
|
||||
#ifndef USE_UINT_ENUMS
|
||||
{
|
||||
LSA_FOREST_TRUST_TOP_LEVEL_NAME=0,
|
||||
LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX=1,
|
||||
LSA_FOREST_TRUST_DOMAIN_INFO=2,
|
||||
LSA_FOREST_TRUST_RECORD_TYPE_LAST=3
|
||||
}
|
||||
#else
|
||||
{ __donnot_use_enum_lsa_ForestTrustRecordType=0x7FFFFFFF}
|
||||
#define LSA_FOREST_TRUST_TOP_LEVEL_NAME ( 0 )
|
||||
#define LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX ( 1 )
|
||||
#define LSA_FOREST_TRUST_DOMAIN_INFO ( 2 )
|
||||
#define LSA_FOREST_TRUST_RECORD_TYPE_LAST ( 3 )
|
||||
#endif
|
||||
;
|
||||
|
||||
struct lsa_ForestTrustRecord {
|
||||
uint32_t flags;
|
||||
enum lsa_ForestTrustRecordType level;
|
||||
uint64_t unknown;
|
||||
union lsa_ForestTrustData forest_trust_data;/* [switch_is(level)] */
|
||||
};
|
||||
|
||||
struct lsa_ForestTrustInformation {
|
||||
uint32_t count;/* [range(0 4000)] */
|
||||
struct lsa_ForestTrustRecord **entries;/* [unique,size_is(count)] */
|
||||
}/* [public] */;
|
||||
|
||||
|
||||
struct lsa_Close {
|
||||
struct {
|
||||
@ -636,7 +750,7 @@ struct lsa_CreateTrustedDomain {
|
||||
struct lsa_EnumTrustDom {
|
||||
struct {
|
||||
struct policy_handle *handle;/* [ref] */
|
||||
uint32_t max_size;/* [range(0 1000)] */
|
||||
uint32_t max_size;
|
||||
uint32_t *resume_handle;/* [ref] */
|
||||
} in;
|
||||
|
||||
@ -654,7 +768,7 @@ struct lsa_LookupNames {
|
||||
struct policy_handle *handle;/* [ref] */
|
||||
uint32_t num_names;/* [range(0 1000)] */
|
||||
struct lsa_String *names;/* [size_is(num_names)] */
|
||||
uint16_t level;
|
||||
enum lsa_LookupNamesLevel level;
|
||||
struct lsa_TransSidArray *sids;/* [ref] */
|
||||
uint32_t *count;/* [ref] */
|
||||
} in;
|
||||
@ -1241,7 +1355,7 @@ struct lsa_LookupNames2 {
|
||||
struct policy_handle *handle;/* [ref] */
|
||||
uint32_t num_names;/* [range(0 1000)] */
|
||||
struct lsa_String *names;/* [size_is(num_names)] */
|
||||
uint16_t level;
|
||||
enum lsa_LookupNamesLevel level;
|
||||
uint32_t unknown1;
|
||||
uint32_t unknown2;
|
||||
struct lsa_TransSidArray2 *sids;/* [ref] */
|
||||
@ -1335,7 +1449,7 @@ struct lsa_LookupNames3 {
|
||||
struct policy_handle *handle;/* [ref] */
|
||||
uint32_t num_names;/* [range(0 1000)] */
|
||||
struct lsa_String *names;/* [size_is(num_names)] */
|
||||
uint16_t level;
|
||||
enum lsa_LookupNamesLevel level;
|
||||
uint32_t unknown1;
|
||||
uint32_t unknown2;
|
||||
struct lsa_TransSidArray3 *sids;/* [ref] */
|
||||
@ -1384,8 +1498,15 @@ struct lsa_LSARUNREGISTERAUDITEVENT {
|
||||
};
|
||||
|
||||
|
||||
struct lsa_LSARQUERYFORESTTRUSTINFORMATION {
|
||||
struct lsa_lsaRQueryForestTrustInformation {
|
||||
struct {
|
||||
struct policy_handle *handle;/* [ref] */
|
||||
struct lsa_String *trusted_domain_name;/* [ref] */
|
||||
uint16_t unknown;
|
||||
} in;
|
||||
|
||||
struct {
|
||||
struct lsa_ForestTrustInformation **forest_trust_info;/* [ref] */
|
||||
NTSTATUS result;
|
||||
} out;
|
||||
|
||||
@ -1432,7 +1553,7 @@ struct lsa_LookupNames4 {
|
||||
struct {
|
||||
uint32_t num_names;/* [range(0 1000)] */
|
||||
struct lsa_String *names;/* [size_is(num_names)] */
|
||||
uint16_t level;
|
||||
enum lsa_LookupNamesLevel level;
|
||||
uint32_t unknown1;
|
||||
uint32_t unknown2;
|
||||
struct lsa_TransSidArray3 *sids;/* [ref] */
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -194,6 +194,7 @@ void ndr_print_lsa_PrivArray(struct ndr_print *ndr, const char *name, const stru
|
||||
void ndr_print_lsa_QosInfo(struct ndr_print *ndr, const char *name, const struct lsa_QosInfo *r);
|
||||
void ndr_print_lsa_ObjectAttribute(struct ndr_print *ndr, const char *name, const struct lsa_ObjectAttribute *r);
|
||||
void ndr_print_lsa_AuditLogInfo(struct ndr_print *ndr, const char *name, const struct lsa_AuditLogInfo *r);
|
||||
void ndr_print_lsa_PolicyAuditPolicy(struct ndr_print *ndr, const char *name, enum lsa_PolicyAuditPolicy r);
|
||||
void ndr_print_lsa_AuditEventsInfo(struct ndr_print *ndr, const char *name, const struct lsa_AuditEventsInfo *r);
|
||||
void ndr_print_lsa_DomainInfo(struct ndr_print *ndr, const char *name, const struct lsa_DomainInfo *r);
|
||||
void ndr_print_lsa_PDAccountInfo(struct ndr_print *ndr, const char *name, const struct lsa_PDAccountInfo *r);
|
||||
@ -215,6 +216,7 @@ void ndr_print_lsa_SidType(struct ndr_print *ndr, const char *name, enum lsa_Sid
|
||||
void ndr_print_lsa_TranslatedSid(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedSid *r);
|
||||
void ndr_print_lsa_TransSidArray(struct ndr_print *ndr, const char *name, const struct lsa_TransSidArray *r);
|
||||
void ndr_print_lsa_RefDomainList(struct ndr_print *ndr, const char *name, const struct lsa_RefDomainList *r);
|
||||
void ndr_print_lsa_LookupNamesLevel(struct ndr_print *ndr, const char *name, enum lsa_LookupNamesLevel r);
|
||||
void ndr_print_lsa_TranslatedName(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedName *r);
|
||||
void ndr_print_lsa_TransNameArray(struct ndr_print *ndr, const char *name, const struct lsa_TransNameArray *r);
|
||||
void ndr_print_lsa_LUIDAttribute(struct ndr_print *ndr, const char *name, const struct lsa_LUIDAttribute *r);
|
||||
@ -246,22 +248,48 @@ void ndr_print_lsa_TranslatedSid2(struct ndr_print *ndr, const char *name, const
|
||||
void ndr_print_lsa_TransSidArray2(struct ndr_print *ndr, const char *name, const struct lsa_TransSidArray2 *r);
|
||||
void ndr_print_lsa_TranslatedSid3(struct ndr_print *ndr, const char *name, const struct lsa_TranslatedSid3 *r);
|
||||
void ndr_print_lsa_TransSidArray3(struct ndr_print *ndr, const char *name, const struct lsa_TransSidArray3 *r);
|
||||
void ndr_print_lsa_ForestTrustBinaryData(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustBinaryData *r);
|
||||
void ndr_print_lsa_ForestTrustDomainInfo(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustDomainInfo *r);
|
||||
void ndr_print_lsa_ForestTrustData(struct ndr_print *ndr, const char *name, const union lsa_ForestTrustData *r);
|
||||
void ndr_print_lsa_ForestTrustRecordType(struct ndr_print *ndr, const char *name, enum lsa_ForestTrustRecordType r);
|
||||
void ndr_print_lsa_ForestTrustRecord(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustRecord *r);
|
||||
enum ndr_err_code ndr_push_lsa_ForestTrustInformation(struct ndr_push *ndr, int ndr_flags, const struct lsa_ForestTrustInformation *r);
|
||||
enum ndr_err_code ndr_pull_lsa_ForestTrustInformation(struct ndr_pull *ndr, int ndr_flags, struct lsa_ForestTrustInformation *r);
|
||||
void ndr_print_lsa_ForestTrustInformation(struct ndr_print *ndr, const char *name, const struct lsa_ForestTrustInformation *r);
|
||||
void ndr_print_lsa_Close(struct ndr_print *ndr, const char *name, int flags, const struct lsa_Close *r);
|
||||
enum ndr_err_code ndr_push_lsa_Delete(struct ndr_push *ndr, int flags, const struct lsa_Delete *r);
|
||||
enum ndr_err_code ndr_pull_lsa_Delete(struct ndr_pull *ndr, int flags, struct lsa_Delete *r);
|
||||
void ndr_print_lsa_Delete(struct ndr_print *ndr, const char *name, int flags, const struct lsa_Delete *r);
|
||||
enum ndr_err_code ndr_push_lsa_EnumPrivs(struct ndr_push *ndr, int flags, const struct lsa_EnumPrivs *r);
|
||||
enum ndr_err_code ndr_pull_lsa_EnumPrivs(struct ndr_pull *ndr, int flags, struct lsa_EnumPrivs *r);
|
||||
void ndr_print_lsa_EnumPrivs(struct ndr_print *ndr, const char *name, int flags, const struct lsa_EnumPrivs *r);
|
||||
void ndr_print_lsa_QuerySecurity(struct ndr_print *ndr, const char *name, int flags, const struct lsa_QuerySecurity *r);
|
||||
void ndr_print_lsa_SetSecObj(struct ndr_print *ndr, const char *name, int flags, const struct lsa_SetSecObj *r);
|
||||
void ndr_print_lsa_ChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct lsa_ChangePassword *r);
|
||||
enum ndr_err_code ndr_push_lsa_OpenPolicy(struct ndr_push *ndr, int flags, const struct lsa_OpenPolicy *r);
|
||||
enum ndr_err_code ndr_pull_lsa_OpenPolicy(struct ndr_pull *ndr, int flags, struct lsa_OpenPolicy *r);
|
||||
void ndr_print_lsa_OpenPolicy(struct ndr_print *ndr, const char *name, int flags, const struct lsa_OpenPolicy *r);
|
||||
void ndr_print_lsa_QueryInfoPolicy(struct ndr_print *ndr, const char *name, int flags, const struct lsa_QueryInfoPolicy *r);
|
||||
void ndr_print_lsa_SetInfoPolicy(struct ndr_print *ndr, const char *name, int flags, const struct lsa_SetInfoPolicy *r);
|
||||
void ndr_print_lsa_ClearAuditLog(struct ndr_print *ndr, const char *name, int flags, const struct lsa_ClearAuditLog *r);
|
||||
enum ndr_err_code ndr_push_lsa_CreateAccount(struct ndr_push *ndr, int flags, const struct lsa_CreateAccount *r);
|
||||
enum ndr_err_code ndr_pull_lsa_CreateAccount(struct ndr_pull *ndr, int flags, struct lsa_CreateAccount *r);
|
||||
void ndr_print_lsa_CreateAccount(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CreateAccount *r);
|
||||
enum ndr_err_code ndr_push_lsa_EnumAccounts(struct ndr_push *ndr, int flags, const struct lsa_EnumAccounts *r);
|
||||
enum ndr_err_code ndr_pull_lsa_EnumAccounts(struct ndr_pull *ndr, int flags, struct lsa_EnumAccounts *r);
|
||||
void ndr_print_lsa_EnumAccounts(struct ndr_print *ndr, const char *name, int flags, const struct lsa_EnumAccounts *r);
|
||||
enum ndr_err_code ndr_push_lsa_CreateTrustedDomain(struct ndr_push *ndr, int flags, const struct lsa_CreateTrustedDomain *r);
|
||||
enum ndr_err_code ndr_pull_lsa_CreateTrustedDomain(struct ndr_pull *ndr, int flags, struct lsa_CreateTrustedDomain *r);
|
||||
void ndr_print_lsa_CreateTrustedDomain(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CreateTrustedDomain *r);
|
||||
void ndr_print_lsa_EnumTrustDom(struct ndr_print *ndr, const char *name, int flags, const struct lsa_EnumTrustDom *r);
|
||||
enum ndr_err_code ndr_push_lsa_LookupNames(struct ndr_push *ndr, int flags, const struct lsa_LookupNames *r);
|
||||
enum ndr_err_code ndr_pull_lsa_LookupNames(struct ndr_pull *ndr, int flags, struct lsa_LookupNames *r);
|
||||
void ndr_print_lsa_LookupNames(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupNames *r);
|
||||
enum ndr_err_code ndr_push_lsa_LookupSids(struct ndr_push *ndr, int flags, const struct lsa_LookupSids *r);
|
||||
enum ndr_err_code ndr_pull_lsa_LookupSids(struct ndr_pull *ndr, int flags, struct lsa_LookupSids *r);
|
||||
void ndr_print_lsa_LookupSids(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupSids *r);
|
||||
enum ndr_err_code ndr_push_lsa_CreateSecret(struct ndr_push *ndr, int flags, const struct lsa_CreateSecret *r);
|
||||
enum ndr_err_code ndr_pull_lsa_CreateSecret(struct ndr_pull *ndr, int flags, struct lsa_CreateSecret *r);
|
||||
void ndr_print_lsa_CreateSecret(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CreateSecret *r);
|
||||
void ndr_print_lsa_OpenAccount(struct ndr_print *ndr, const char *name, int flags, const struct lsa_OpenAccount *r);
|
||||
void ndr_print_lsa_EnumPrivsAccount(struct ndr_print *ndr, const char *name, int flags, const struct lsa_EnumPrivsAccount *r);
|
||||
@ -274,8 +302,14 @@ void ndr_print_lsa_SetSystemAccessAccount(struct ndr_print *ndr, const char *nam
|
||||
void ndr_print_lsa_OpenTrustedDomain(struct ndr_print *ndr, const char *name, int flags, const struct lsa_OpenTrustedDomain *r);
|
||||
void ndr_print_lsa_QueryTrustedDomainInfo(struct ndr_print *ndr, const char *name, int flags, const struct lsa_QueryTrustedDomainInfo *r);
|
||||
void ndr_print_lsa_SetInformationTrustedDomain(struct ndr_print *ndr, const char *name, int flags, const struct lsa_SetInformationTrustedDomain *r);
|
||||
enum ndr_err_code ndr_push_lsa_OpenSecret(struct ndr_push *ndr, int flags, const struct lsa_OpenSecret *r);
|
||||
enum ndr_err_code ndr_pull_lsa_OpenSecret(struct ndr_pull *ndr, int flags, struct lsa_OpenSecret *r);
|
||||
void ndr_print_lsa_OpenSecret(struct ndr_print *ndr, const char *name, int flags, const struct lsa_OpenSecret *r);
|
||||
enum ndr_err_code ndr_push_lsa_SetSecret(struct ndr_push *ndr, int flags, const struct lsa_SetSecret *r);
|
||||
enum ndr_err_code ndr_pull_lsa_SetSecret(struct ndr_pull *ndr, int flags, struct lsa_SetSecret *r);
|
||||
void ndr_print_lsa_SetSecret(struct ndr_print *ndr, const char *name, int flags, const struct lsa_SetSecret *r);
|
||||
enum ndr_err_code ndr_push_lsa_QuerySecret(struct ndr_push *ndr, int flags, const struct lsa_QuerySecret *r);
|
||||
enum ndr_err_code ndr_pull_lsa_QuerySecret(struct ndr_pull *ndr, int flags, struct lsa_QuerySecret *r);
|
||||
void ndr_print_lsa_QuerySecret(struct ndr_print *ndr, const char *name, int flags, const struct lsa_QuerySecret *r);
|
||||
void ndr_print_lsa_LookupPrivValue(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupPrivValue *r);
|
||||
void ndr_print_lsa_LookupPrivName(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupPrivName *r);
|
||||
@ -290,6 +324,8 @@ void ndr_print_lsa_SetTrustedDomainInfo(struct ndr_print *ndr, const char *name,
|
||||
void ndr_print_lsa_DeleteTrustedDomain(struct ndr_print *ndr, const char *name, int flags, const struct lsa_DeleteTrustedDomain *r);
|
||||
void ndr_print_lsa_StorePrivateData(struct ndr_print *ndr, const char *name, int flags, const struct lsa_StorePrivateData *r);
|
||||
void ndr_print_lsa_RetrievePrivateData(struct ndr_print *ndr, const char *name, int flags, const struct lsa_RetrievePrivateData *r);
|
||||
enum ndr_err_code ndr_push_lsa_OpenPolicy2(struct ndr_push *ndr, int flags, const struct lsa_OpenPolicy2 *r);
|
||||
enum ndr_err_code ndr_pull_lsa_OpenPolicy2(struct ndr_pull *ndr, int flags, struct lsa_OpenPolicy2 *r);
|
||||
void ndr_print_lsa_OpenPolicy2(struct ndr_print *ndr, const char *name, int flags, const struct lsa_OpenPolicy2 *r);
|
||||
void ndr_print_lsa_GetUserName(struct ndr_print *ndr, const char *name, int flags, const struct lsa_GetUserName *r);
|
||||
void ndr_print_lsa_QueryInfoPolicy2(struct ndr_print *ndr, const char *name, int flags, const struct lsa_QueryInfoPolicy2 *r);
|
||||
@ -303,7 +339,11 @@ void ndr_print_lsa_QueryDomainInformationPolicy(struct ndr_print *ndr, const cha
|
||||
void ndr_print_lsa_SetDomainInformationPolicy(struct ndr_print *ndr, const char *name, int flags, const struct lsa_SetDomainInformationPolicy *r);
|
||||
void ndr_print_lsa_OpenTrustedDomainByName(struct ndr_print *ndr, const char *name, int flags, const struct lsa_OpenTrustedDomainByName *r);
|
||||
void ndr_print_lsa_TestCall(struct ndr_print *ndr, const char *name, int flags, const struct lsa_TestCall *r);
|
||||
enum ndr_err_code ndr_push_lsa_LookupSids2(struct ndr_push *ndr, int flags, const struct lsa_LookupSids2 *r);
|
||||
enum ndr_err_code ndr_pull_lsa_LookupSids2(struct ndr_pull *ndr, int flags, struct lsa_LookupSids2 *r);
|
||||
void ndr_print_lsa_LookupSids2(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupSids2 *r);
|
||||
enum ndr_err_code ndr_push_lsa_LookupNames2(struct ndr_push *ndr, int flags, const struct lsa_LookupNames2 *r);
|
||||
enum ndr_err_code ndr_pull_lsa_LookupNames2(struct ndr_pull *ndr, int flags, struct lsa_LookupNames2 *r);
|
||||
void ndr_print_lsa_LookupNames2(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupNames2 *r);
|
||||
void ndr_print_lsa_CreateTrustedDomainEx2(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CreateTrustedDomainEx2 *r);
|
||||
void ndr_print_lsa_CREDRWRITE(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CREDRWRITE *r);
|
||||
@ -314,14 +354,18 @@ void ndr_print_lsa_CREDRREADDOMAINCREDENTIALS(struct ndr_print *ndr, const char
|
||||
void ndr_print_lsa_CREDRDELETE(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CREDRDELETE *r);
|
||||
void ndr_print_lsa_CREDRGETTARGETINFO(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CREDRGETTARGETINFO *r);
|
||||
void ndr_print_lsa_CREDRPROFILELOADED(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CREDRPROFILELOADED *r);
|
||||
enum ndr_err_code ndr_push_lsa_LookupNames3(struct ndr_push *ndr, int flags, const struct lsa_LookupNames3 *r);
|
||||
enum ndr_err_code ndr_pull_lsa_LookupNames3(struct ndr_pull *ndr, int flags, struct lsa_LookupNames3 *r);
|
||||
void ndr_print_lsa_LookupNames3(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupNames3 *r);
|
||||
void ndr_print_lsa_CREDRGETSESSIONTYPES(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CREDRGETSESSIONTYPES *r);
|
||||
void ndr_print_lsa_LSARREGISTERAUDITEVENT(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LSARREGISTERAUDITEVENT *r);
|
||||
void ndr_print_lsa_LSARGENAUDITEVENT(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LSARGENAUDITEVENT *r);
|
||||
void ndr_print_lsa_LSARUNREGISTERAUDITEVENT(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LSARUNREGISTERAUDITEVENT *r);
|
||||
void ndr_print_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r);
|
||||
void ndr_print_lsa_lsaRQueryForestTrustInformation(struct ndr_print *ndr, const char *name, int flags, const struct lsa_lsaRQueryForestTrustInformation *r);
|
||||
void ndr_print_lsa_LSARSETFORESTTRUSTINFORMATION(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LSARSETFORESTTRUSTINFORMATION *r);
|
||||
void ndr_print_lsa_CREDRRENAME(struct ndr_print *ndr, const char *name, int flags, const struct lsa_CREDRRENAME *r);
|
||||
enum ndr_err_code ndr_push_lsa_LookupSids3(struct ndr_push *ndr, int flags, const struct lsa_LookupSids3 *r);
|
||||
enum ndr_err_code ndr_pull_lsa_LookupSids3(struct ndr_pull *ndr, int flags, struct lsa_LookupSids3 *r);
|
||||
void ndr_print_lsa_LookupSids3(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupSids3 *r);
|
||||
void ndr_print_lsa_LookupNames4(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LookupNames4 *r);
|
||||
void ndr_print_lsa_LSAROPENPOLICYSCE(struct ndr_print *ndr, const char *name, int flags, const struct lsa_LSAROPENPOLICYSCE *r);
|
||||
|
@ -5579,18 +5579,18 @@ static bool api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
|
||||
static bool api_lsa_lsaRQueryForestTrustInformation(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_LSARQUERYFORESTTRUSTINFORMATION *r;
|
||||
struct lsa_lsaRQueryForestTrustInformation *r;
|
||||
|
||||
call = &ndr_table_lsarpc.calls[NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION];
|
||||
|
||||
r = talloc(NULL, struct lsa_LSARQUERYFORESTTRUSTINFORMATION);
|
||||
r = talloc(NULL, struct lsa_lsaRQueryForestTrustInformation);
|
||||
if (r == NULL) {
|
||||
return false;
|
||||
}
|
||||
@ -5614,10 +5614,17 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
|
||||
}
|
||||
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, r);
|
||||
NDR_PRINT_IN_DEBUG(lsa_lsaRQueryForestTrustInformation, r);
|
||||
}
|
||||
|
||||
r->out.result = _lsa_LSARQUERYFORESTTRUSTINFORMATION(p, r);
|
||||
ZERO_STRUCT(r->out);
|
||||
r->out.forest_trust_info = talloc_zero(r, struct lsa_ForestTrustInformation *);
|
||||
if (r->out.forest_trust_info == NULL) {
|
||||
talloc_free(r);
|
||||
return false;
|
||||
}
|
||||
|
||||
r->out.result = _lsa_lsaRQueryForestTrustInformation(p, r);
|
||||
|
||||
if (p->rng_fault_state) {
|
||||
talloc_free(r);
|
||||
@ -5626,7 +5633,7 @@ static bool api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
|
||||
}
|
||||
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, r);
|
||||
NDR_PRINT_OUT_DEBUG(lsa_lsaRQueryForestTrustInformation, r);
|
||||
}
|
||||
|
||||
push = ndr_push_init_ctx(r);
|
||||
@ -6331,7 +6338,7 @@ static struct api_struct api_lsarpc_cmds[] =
|
||||
{"LSA_LSARREGISTERAUDITEVENT", NDR_LSA_LSARREGISTERAUDITEVENT, api_lsa_LSARREGISTERAUDITEVENT},
|
||||
{"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_LSARQUERYFORESTTRUSTINFORMATION", NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION, api_lsa_lsaRQueryForestTrustInformation},
|
||||
{"LSA_LSARSETFORESTTRUSTINFORMATION", NDR_LSA_LSARSETFORESTTRUSTINFORMATION, api_lsa_LSARSETFORESTTRUSTINFORMATION},
|
||||
{"LSA_CREDRRENAME", NDR_LSA_CREDRRENAME, api_lsa_CREDRRENAME},
|
||||
{"LSA_LOOKUPSIDS3", NDR_LSA_LOOKUPSIDS3, api_lsa_LookupSids3},
|
||||
|
@ -74,7 +74,7 @@ NTSTATUS _lsa_CREDRGETSESSIONTYPES(pipes_struct *p, struct lsa_CREDRGETSESSIONTY
|
||||
NTSTATUS _lsa_LSARREGISTERAUDITEVENT(pipes_struct *p, struct lsa_LSARREGISTERAUDITEVENT *r);
|
||||
NTSTATUS _lsa_LSARGENAUDITEVENT(pipes_struct *p, struct lsa_LSARGENAUDITEVENT *r);
|
||||
NTSTATUS _lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p, struct lsa_LSARUNREGISTERAUDITEVENT *r);
|
||||
NTSTATUS _lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p, struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r);
|
||||
NTSTATUS _lsa_lsaRQueryForestTrustInformation(pipes_struct *p, struct lsa_lsaRQueryForestTrustInformation *r);
|
||||
NTSTATUS _lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p, struct lsa_LSARSETFORESTTRUSTINFORMATION *r);
|
||||
NTSTATUS _lsa_CREDRRENAME(pipes_struct *p, struct lsa_CREDRRENAME *r);
|
||||
NTSTATUS _lsa_LookupSids3(pipes_struct *p, struct lsa_LookupSids3 *r);
|
||||
|
@ -47,7 +47,7 @@ import "security.idl";
|
||||
|
||||
/******************/
|
||||
/* Function: 0x01 */
|
||||
NTSTATUS lsa_Delete (
|
||||
[public] NTSTATUS lsa_Delete (
|
||||
[in] policy_handle *handle
|
||||
);
|
||||
|
||||
@ -69,7 +69,7 @@ import "security.idl";
|
||||
[size_is(count)] lsa_PrivEntry *privs;
|
||||
} lsa_PrivArray;
|
||||
|
||||
NTSTATUS lsa_EnumPrivs (
|
||||
[public] NTSTATUS lsa_EnumPrivs (
|
||||
[in] policy_handle *handle,
|
||||
[in,out] uint32 *resume_handle,
|
||||
[in] uint32 max_count,
|
||||
@ -116,7 +116,7 @@ import "security.idl";
|
||||
|
||||
/* notice the screwup with the system_name - thats why MS created
|
||||
OpenPolicy2 */
|
||||
NTSTATUS lsa_OpenPolicy (
|
||||
[public] NTSTATUS lsa_OpenPolicy (
|
||||
[in,unique] uint16 *system_name,
|
||||
[in] lsa_ObjectAttribute *attr,
|
||||
[in] uint32 access_mask,
|
||||
@ -271,7 +271,7 @@ import "security.idl";
|
||||
|
||||
/******************/
|
||||
/* Function: 0x0a */
|
||||
NTSTATUS lsa_CreateAccount (
|
||||
[public] NTSTATUS lsa_CreateAccount (
|
||||
[in] policy_handle *handle,
|
||||
[in] dom_sid2 *sid,
|
||||
[in] uint32 access_mask,
|
||||
@ -292,7 +292,7 @@ import "security.idl";
|
||||
[size_is(num_sids)] lsa_SidPtr *sids;
|
||||
} lsa_SidArray;
|
||||
|
||||
NTSTATUS lsa_EnumAccounts (
|
||||
[public] NTSTATUS lsa_EnumAccounts (
|
||||
[in] policy_handle *handle,
|
||||
[in,out] uint32 *resume_handle,
|
||||
[in,range(0,8192)] uint32 num_entries,
|
||||
@ -303,7 +303,7 @@ import "security.idl";
|
||||
/*************************************************/
|
||||
/* Function: 0x0c */
|
||||
|
||||
NTSTATUS lsa_CreateTrustedDomain(
|
||||
[public] NTSTATUS lsa_CreateTrustedDomain(
|
||||
[in] policy_handle *handle,
|
||||
[in] lsa_DomainInfo *info,
|
||||
[in] uint32 access_mask,
|
||||
@ -325,7 +325,7 @@ import "security.idl";
|
||||
NTSTATUS lsa_EnumTrustDom (
|
||||
[in] policy_handle *handle,
|
||||
[in,out] uint32 *resume_handle,
|
||||
[in,range(0,1000)] uint32 max_size,
|
||||
[in] uint32 max_size,
|
||||
[out] lsa_DomainList *domains
|
||||
);
|
||||
|
||||
@ -363,13 +363,30 @@ import "security.idl";
|
||||
uint32 max_size;
|
||||
} lsa_RefDomainList;
|
||||
|
||||
NTSTATUS lsa_LookupNames (
|
||||
/* Level 1: Ask everywhere
|
||||
* Level 2: Ask domain and trusted domains, no builtin and wkn
|
||||
* Level 3: Only ask domain
|
||||
* Level 4: W2k3ad: Only ask AD trusts
|
||||
* Level 5: Only ask transitive forest trusts
|
||||
* Level 6: Like 4
|
||||
*/
|
||||
|
||||
typedef enum {
|
||||
LSA_LOOKUP_NAMES_ALL = 1,
|
||||
LSA_LOOKUP_NAMES_DOMAINS_ONLY = 2,
|
||||
LSA_LOOKUP_NAMES_PRIMARY_DOMAIN_ONLY = 3,
|
||||
LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY = 4,
|
||||
LSA_LOOKUP_NAMES_FOREST_TRUSTS_ONLY = 5,
|
||||
LSA_LOOKUP_NAMES_UPLEVEL_TRUSTS_ONLY2 = 6
|
||||
} lsa_LookupNamesLevel;
|
||||
|
||||
[public] NTSTATUS lsa_LookupNames (
|
||||
[in] policy_handle *handle,
|
||||
[in,range(0,1000)] uint32 num_names,
|
||||
[in,size_is(num_names)] lsa_String names[],
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
[in,out] lsa_TransSidArray *sids,
|
||||
[in] uint16 level,
|
||||
[in] lsa_LookupNamesLevel level,
|
||||
[in,out] uint32 *count
|
||||
);
|
||||
|
||||
@ -388,7 +405,7 @@ import "security.idl";
|
||||
[size_is(count)] lsa_TranslatedName *names;
|
||||
} lsa_TransNameArray;
|
||||
|
||||
NTSTATUS lsa_LookupSids (
|
||||
[public] NTSTATUS lsa_LookupSids (
|
||||
[in] policy_handle *handle,
|
||||
[in] lsa_SidArray *sids,
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
@ -399,7 +416,7 @@ import "security.idl";
|
||||
|
||||
|
||||
/* Function: 0x10 */
|
||||
NTSTATUS lsa_CreateSecret(
|
||||
[public] NTSTATUS lsa_CreateSecret(
|
||||
[in] policy_handle *handle,
|
||||
[in] lsa_String name,
|
||||
[in] uint32 access_mask,
|
||||
@ -579,7 +596,7 @@ import "security.idl";
|
||||
NTSTATUS lsa_SetInformationTrustedDomain();
|
||||
|
||||
/* Function: 0x1c */
|
||||
NTSTATUS lsa_OpenSecret(
|
||||
[public] NTSTATUS lsa_OpenSecret(
|
||||
[in] policy_handle *handle,
|
||||
[in] lsa_String name,
|
||||
[in] uint32 access_mask,
|
||||
@ -588,7 +605,7 @@ import "security.idl";
|
||||
|
||||
/* Function: 0x1d */
|
||||
|
||||
NTSTATUS lsa_SetSecret(
|
||||
[public] NTSTATUS lsa_SetSecret(
|
||||
[in] policy_handle *sec_handle,
|
||||
[in,unique] lsa_DATA_BUF *new_val,
|
||||
[in,unique] lsa_DATA_BUF *old_val
|
||||
@ -599,7 +616,7 @@ import "security.idl";
|
||||
} lsa_DATA_BUF_PTR;
|
||||
|
||||
/* Function: 0x1e */
|
||||
NTSTATUS lsa_QuerySecret (
|
||||
[public] NTSTATUS lsa_QuerySecret (
|
||||
[in] policy_handle *sec_handle,
|
||||
[in,out,unique] lsa_DATA_BUF_PTR *new_val,
|
||||
[in,out,unique] NTTIME_hyper *new_mtime,
|
||||
@ -705,7 +722,7 @@ import "security.idl";
|
||||
|
||||
/**********************/
|
||||
/* Function: 0x2c */
|
||||
NTSTATUS lsa_OpenPolicy2 (
|
||||
[public] NTSTATUS lsa_OpenPolicy2 (
|
||||
[in,unique] [string,charset(UTF16)] uint16 *system_name,
|
||||
[in] lsa_ObjectAttribute *attr,
|
||||
[in] uint32 access_mask,
|
||||
@ -852,7 +869,7 @@ import "security.idl";
|
||||
[size_is(count)] lsa_TranslatedName2 *names;
|
||||
} lsa_TransNameArray2;
|
||||
|
||||
NTSTATUS lsa_LookupSids2(
|
||||
[public] NTSTATUS lsa_LookupSids2(
|
||||
[in] policy_handle *handle,
|
||||
[in] lsa_SidArray *sids,
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
@ -878,13 +895,13 @@ import "security.idl";
|
||||
[size_is(count)] lsa_TranslatedSid2 *sids;
|
||||
} lsa_TransSidArray2;
|
||||
|
||||
NTSTATUS lsa_LookupNames2 (
|
||||
[public] NTSTATUS lsa_LookupNames2 (
|
||||
[in] policy_handle *handle,
|
||||
[in,range(0,1000)] uint32 num_names,
|
||||
[in,size_is(num_names)] lsa_String names[],
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
[in,out] lsa_TransSidArray2 *sids,
|
||||
[in] uint16 level,
|
||||
[in] lsa_LookupNamesLevel level,
|
||||
[in,out] uint32 *count,
|
||||
[in] uint32 unknown1,
|
||||
[in] uint32 unknown2
|
||||
@ -931,13 +948,13 @@ import "security.idl";
|
||||
[size_is(count)] lsa_TranslatedSid3 *sids;
|
||||
} lsa_TransSidArray3;
|
||||
|
||||
NTSTATUS lsa_LookupNames3 (
|
||||
[public] NTSTATUS lsa_LookupNames3 (
|
||||
[in] policy_handle *handle,
|
||||
[in,range(0,1000)] uint32 num_names,
|
||||
[in,size_is(num_names)] lsa_String names[],
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
[in,out] lsa_TransSidArray3 *sids,
|
||||
[in] uint16 level,
|
||||
[in] lsa_LookupNamesLevel level,
|
||||
[in,out] uint32 *count,
|
||||
[in] uint32 unknown1,
|
||||
[in] uint32 unknown2
|
||||
@ -956,7 +973,49 @@ import "security.idl";
|
||||
NTSTATUS lsa_LSARUNREGISTERAUDITEVENT();
|
||||
|
||||
/* Function 0x49 */
|
||||
NTSTATUS lsa_LSARQUERYFORESTTRUSTINFORMATION();
|
||||
typedef struct {
|
||||
[range(0,131072)] uint32 length;
|
||||
[size_is(length)] uint8 *data;
|
||||
} lsa_ForestTrustBinaryData;
|
||||
|
||||
typedef struct {
|
||||
dom_sid2 *domain_sid;
|
||||
lsa_StringLarge dns_domain_name;
|
||||
lsa_StringLarge netbios_domain_name;
|
||||
} lsa_ForestTrustDomainInfo;
|
||||
|
||||
typedef [switch_type(uint32)] union {
|
||||
[case(LSA_FOREST_TRUST_TOP_LEVEL_NAME)] lsa_String top_level_name;
|
||||
[case(LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX)] lsa_StringLarge top_level_name_ex;
|
||||
[case(LSA_FOREST_TRUST_DOMAIN_INFO)] lsa_ForestTrustDomainInfo domain_info;
|
||||
[default] lsa_ForestTrustBinaryData data;
|
||||
} lsa_ForestTrustData;
|
||||
|
||||
typedef [v1_enum] enum {
|
||||
LSA_FOREST_TRUST_TOP_LEVEL_NAME = 0,
|
||||
LSA_FOREST_TRUST_TOP_LEVEL_NAME_EX = 1,
|
||||
LSA_FOREST_TRUST_DOMAIN_INFO = 2,
|
||||
LSA_FOREST_TRUST_RECORD_TYPE_LAST = 3
|
||||
} lsa_ForestTrustRecordType;
|
||||
|
||||
typedef struct {
|
||||
uint32 flags;
|
||||
lsa_ForestTrustRecordType level;
|
||||
hyper unknown;
|
||||
[switch_is(level)] lsa_ForestTrustData forest_trust_data;
|
||||
} lsa_ForestTrustRecord;
|
||||
|
||||
typedef [public] struct {
|
||||
[range(0,4000)] uint32 count;
|
||||
[size_is(count)] lsa_ForestTrustRecord **entries;
|
||||
} lsa_ForestTrustInformation;
|
||||
|
||||
NTSTATUS lsa_lsaRQueryForestTrustInformation(
|
||||
[in] policy_handle *handle,
|
||||
[in,ref] lsa_String *trusted_domain_name,
|
||||
[in] uint16 unknown, /* level ? */
|
||||
[out,ref] lsa_ForestTrustInformation **forest_trust_info
|
||||
);
|
||||
|
||||
/* Function 0x4a */
|
||||
NTSTATUS lsa_LSARSETFORESTTRUSTINFORMATION();
|
||||
@ -967,7 +1026,7 @@ import "security.idl";
|
||||
/*****************/
|
||||
/* Function 0x4c */
|
||||
|
||||
NTSTATUS lsa_LookupSids3(
|
||||
[public] NTSTATUS lsa_LookupSids3(
|
||||
[in] lsa_SidArray *sids,
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
[in,out] lsa_TransNameArray2 *names,
|
||||
@ -983,7 +1042,7 @@ import "security.idl";
|
||||
[in,size_is(num_names)] lsa_String names[],
|
||||
[out,unique] lsa_RefDomainList *domains,
|
||||
[in,out] lsa_TransSidArray3 *sids,
|
||||
[in] uint16 level,
|
||||
[in] lsa_LookupNamesLevel level,
|
||||
[in,out] uint32 *count,
|
||||
[in] uint32 unknown1,
|
||||
[in] uint32 unknown2
|
||||
|
@ -2583,7 +2583,7 @@ NTSTATUS _lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p, struct lsa_LSARUNREGISTE
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NTSTATUS _lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p, struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r)
|
||||
NTSTATUS _lsa_lsaRQueryForestTrustInformation(pipes_struct *p, struct lsa_lsaRQueryForestTrustInformation *r)
|
||||
{
|
||||
p->rng_fault_state = True;
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user