From ad44611170d7f24544cd62424a5729aef03acd21 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 1 Sep 2005 10:36:48 +0000 Subject: r9888: add IDL for lsa_QueryDomainInformationPolicy to query Kerberos Settings. Guenther (This used to be commit d717e878bdc05b06adcc50c3527c339be8164145) --- source4/librpc/idl/lsa.idl | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl index 83251b37db..0927e6ef85 100644 --- a/source4/librpc/idl/lsa.idl +++ b/source4/librpc/idl/lsa.idl @@ -738,10 +738,45 @@ NTSTATUS lsa_CloseTrustedDomainEx(); /* Function 0x35 */ - NTSTATUS lsa_QueryDomainInformationPolicy(); + + /* w2k3 returns either 0x000bbbd000000000 or 0x000a48e800000000 + for unknown6 - gd */ + typedef struct { + uint32 enforce_restrictions; + hyper service_tkt_lifetime; + hyper user_tkt_lifetime; + hyper user_tkt_renewaltime; + hyper clock_skew; + hyper unknown6; + } lsa_DomainInfoKerberos; + + typedef struct { + uint32 blob_size; + [size_is(blob_size)] uint8 *efs_blob; + } lsa_DomainInfoEfs; + + typedef enum { + LSA_DOMAIN_INFO_POLICY_EFS=2, + LSA_DOMAIN_INFO_POLICY_KERBEROS=3 + } lsa_DomainInfoEnum; + + typedef [switch_type(uint16)] union { + [case(LSA_DOMAIN_INFO_POLICY_EFS)] lsa_DomainInfoEfs efs_info; + [case(LSA_DOMAIN_INFO_POLICY_KERBEROS)] lsa_DomainInfoKerberos kerberos_info; + } lsa_DomainInformationPolicy; + + NTSTATUS lsa_QueryDomainInformationPolicy( + [in,ref] policy_handle *handle, + [in] uint16 level, + [out,switch_is(level)] lsa_DomainInformationPolicy *info + ); /* Function 0x36 */ - NTSTATUS lsa_SetDomInfoPolicy(); + NTSTATUS lsa_SetDomainInformationPolicy( + [in,ref] policy_handle *handle, + [in] uint16 level, + [in,switch_is(level)] lsa_DomainInformationPolicy *info + ); /**********************/ /* Function 0x37 */ -- cgit