From 0b4dbfebaa64766829fc36866fe44c18a19b6a3d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 01:08:40 +0100 Subject: Fix IDL for lsa_EnumAccounts. Guenther (This used to be commit d4744fe33fa99152f414e6e3a048eb9479f3d2b2) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 305bab3d03..6eb96a8b26 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -297,9 +297,9 @@ import "security.idl"; [public] NTSTATUS lsa_EnumAccounts ( [in] policy_handle *handle, - [in,out] uint32 *resume_handle, - [in,range(0,8192)] uint32 num_entries, - [out] lsa_SidArray *sids + [in,out,ref] uint32 *resume_handle, + [out,ref] lsa_SidArray *sids, + [in,range(0,8192)] uint32 num_entries ); -- cgit From ba33ff8e63e80096a5c2c787dcc5b8b841f44ba4 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 01:51:15 +0100 Subject: Fix IDL for lsa_EnumPrivsAccount. Guenther (This used to be commit 369df93875c501af460d87b67bb5e919f7741a69) --- source3/librpc/idl/lsa.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 6eb96a8b26..390debc505 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -453,7 +453,7 @@ import "security.idl"; NTSTATUS lsa_EnumPrivsAccount ( [in] policy_handle *handle, - [out,unique] lsa_PrivilegeSet *privs + [out,ref] lsa_PrivilegeSet **privs ); -- cgit From a34188d0dbf2de964a1ecd386576b53ee92ab49a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 13:09:54 +0100 Subject: Fix IDL for lsa_LookupPrivValue. Guenther (This used to be commit 05386f70566e272247ed917b51d712054196ebcb) --- source3/librpc/idl/lsa.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 390debc505..ffad802ecd 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -637,8 +637,8 @@ import "security.idl"; /* Function: 0x1f */ NTSTATUS lsa_LookupPrivValue( [in] policy_handle *handle, - [in] lsa_String *name, - [out] lsa_LUID *luid + [in,ref] lsa_String *name, + [out,ref] lsa_LUID *luid ); -- cgit From 6e01d7cb6daf3bb961107a6d6c4a5f6537a97d13 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 12:47:04 +0100 Subject: Fix IDL for lsa_AddPrivilegesToAccount. Guenther (This used to be commit 21f82166982784c9685a6403c8db21f421ed0bad) --- source3/librpc/idl/lsa.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index ffad802ecd..6bb34a9dc5 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -461,7 +461,7 @@ import "security.idl"; /* Function: 0x13 */ NTSTATUS lsa_AddPrivilegesToAccount( [in] policy_handle *handle, - [in] lsa_PrivilegeSet *privs + [in,ref] lsa_PrivilegeSet *privs ); -- cgit From 3329432d1f6e9dab31a970b2b407374c144d68ba Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 14:22:25 +0100 Subject: Fix IDL for lsa_AddAccountRights. Guenther (This used to be commit 7319986a3e9a640ea2d605dc7a2104f43f74f8a2) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 6bb34a9dc5..df948bc68e 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -682,7 +682,7 @@ import "security.idl"; } lsa_RightAttribute; typedef struct { - uint32 count; + [range(0,256)] uint32 count; [size_is(count)] lsa_StringLarge *names; } lsa_RightSet; @@ -697,8 +697,8 @@ import "security.idl"; /* Function: 0x25 */ NTSTATUS lsa_AddAccountRights ( [in] policy_handle *handle, - [in] dom_sid2 *sid, - [in] lsa_RightSet *rights + [in,ref] dom_sid2 *sid, + [in,ref] lsa_RightSet *rights ); /**********************/ -- cgit From 235efc0ede0a4951f4f6c4714e1bfd123d0816bd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 15:02:59 +0100 Subject: Fix IDL for lsa_EnumAccountRights. Guenther (This used to be commit ef9b65dd115591d8976f0248cf1c639fd05c03d7) --- source3/librpc/idl/lsa.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index df948bc68e..aad9c3b9a1 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -688,8 +688,8 @@ import "security.idl"; NTSTATUS lsa_EnumAccountRights ( [in] policy_handle *handle, - [in] dom_sid2 *sid, - [out] lsa_RightSet *rights + [in,ref] dom_sid2 *sid, + [out,ref] lsa_RightSet *rights ); -- cgit From fbe577a67e16695a5aa6df536c13aae356c3b4fd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 14 Feb 2008 15:20:47 +0100 Subject: Fix IDL for lsa_RemoveAccountRights. Guenther (This used to be commit d65b2504de6e433e1ca3ea8aa839b4209dd1b99a) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index aad9c3b9a1..47fa9f43b6 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -705,9 +705,9 @@ import "security.idl"; /* Function: 0x26 */ NTSTATUS lsa_RemoveAccountRights ( [in] policy_handle *handle, - [in] dom_sid2 *sid, - [in] uint32 unknown, - [in] lsa_RightSet *rights + [in,ref] dom_sid2 *sid, + [in] uint8 remove_all, + [in,ref] lsa_RightSet *rights ); /* Function: 0x27 */ -- cgit From fa00695d46f195155e13ad47f3f402e28be2ca4a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 19:55:35 +0100 Subject: Fix IDL for lsa_LookupNames. Guenther (This used to be commit 684de849c8f3847b1ba389f4e15225c9ca5924f9) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 47fa9f43b6..62169bafe5 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -387,10 +387,10 @@ import "security.idl"; [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, + [out,ref] lsa_RefDomainList **domains, + [in,out,ref] lsa_TransSidArray *sids, [in] lsa_LookupNamesLevel level, - [in,out] uint32 *count + [in,out,ref] uint32 *count ); -- cgit From 10e93a92d335788adb98c8609f9dc672149977a9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 19:58:18 +0100 Subject: Fix IDL for lsa_LookupSids. Guenther (This used to be commit 10f2cddfd529fcd538a09cc92eb3f99619742c44) --- source3/librpc/idl/lsa.idl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 62169bafe5..c480ed1cc4 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -410,11 +410,11 @@ import "security.idl"; [public] NTSTATUS lsa_LookupSids ( [in] policy_handle *handle, - [in] lsa_SidArray *sids, - [out,unique] lsa_RefDomainList *domains, - [in,out] lsa_TransNameArray *names, + [in,ref] lsa_SidArray *sids, + [out,ref] lsa_RefDomainList **domains, + [in,out,ref] lsa_TransNameArray *names, [in] uint16 level, - [in,out] uint32 *count + [in,out,ref] uint32 *count ); -- cgit From c0dc198c6075de7b88c511810dba5194bf54bf0f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 19:58:48 +0100 Subject: Fix IDL for lsa_LookupSids2. Guenther (This used to be commit 4d5d2fc8d537c5aaa4d1196cc145cb223e4ced4d) --- source3/librpc/idl/lsa.idl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index c480ed1cc4..8d49f6084f 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -879,11 +879,11 @@ import "security.idl"; [public] NTSTATUS lsa_LookupSids2( [in] policy_handle *handle, - [in] lsa_SidArray *sids, - [out,unique] lsa_RefDomainList *domains, - [in,out] lsa_TransNameArray2 *names, + [in,ref] lsa_SidArray *sids, + [out,ref] lsa_RefDomainList **domains, + [in,out,ref] lsa_TransNameArray2 *names, [in] uint16 level, - [in,out] uint32 *count, + [in,out,ref] uint32 *count, [in] uint32 unknown1, [in] uint32 unknown2 ); -- cgit From 6bff54c02e2fac2ea3eb46a8f357139fe55137b8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 20:03:12 +0100 Subject: Fix IDL for lsa_LookupNames2. Guenther (This used to be commit 088a9f21b2a37acdf9a43128252db23d3222ec7c) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 8d49f6084f..aaee35e1d6 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -907,10 +907,10 @@ import "security.idl"; [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, + [out,ref] lsa_RefDomainList **domains, + [in,out,ref] lsa_TransSidArray2 *sids, [in] lsa_LookupNamesLevel level, - [in,out] uint32 *count, + [in,out,ref] uint32 *count, [in] uint32 unknown1, [in] uint32 unknown2 ); -- cgit From b1cc1db24707d6e27c19d3d65e92924523eb6704 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 20:03:53 +0100 Subject: Fix IDL for lsa_LookupNames3. Guenther (This used to be commit 6e21a5c3bb6e88ee9c9743094822fb7161f09952) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index aaee35e1d6..773f36106c 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -960,10 +960,10 @@ import "security.idl"; [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, + [out,ref] lsa_RefDomainList *domains, + [in,out,ref] lsa_TransSidArray3 *sids, [in] lsa_LookupNamesLevel level, - [in,out] uint32 *count, + [in,out,ref] uint32 *count, [in] uint32 unknown1, [in] uint32 unknown2 ); -- cgit From 3f809ef84059912d3dd3cfbbd81eccea4562f582 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 20:04:14 +0100 Subject: Fix IDL for lsa_LookupSids3. Guenther (This used to be commit 4fe468786bedfb8bc03d5db1396a70379111f188) --- source3/librpc/idl/lsa.idl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 773f36106c..3d8b68812f 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -1035,11 +1035,11 @@ import "security.idl"; /* Function 0x4c */ [public] NTSTATUS lsa_LookupSids3( - [in] lsa_SidArray *sids, - [out,unique] lsa_RefDomainList *domains, - [in,out] lsa_TransNameArray2 *names, + [in,ref] lsa_SidArray *sids, + [out,ref] lsa_RefDomainList **domains, + [in,out,ref] lsa_TransNameArray2 *names, [in] uint16 level, - [in,out] uint32 *count, + [in,out,ref] uint32 *count, [in] uint32 unknown1, [in] uint32 unknown2 ); -- cgit From 9d7f2490fe6b7565884de658c7fe5fa33097156d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 17 Feb 2008 20:04:40 +0100 Subject: Fix IDL for lsa_LookupNames4. Guenther (This used to be commit 8d79684d6cebdf1995c37255b42594522071a910) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 3d8b68812f..ccac66b172 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -1048,10 +1048,10 @@ import "security.idl"; NTSTATUS lsa_LookupNames4( [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, + [out,ref] lsa_RefDomainList *domains, + [in,out,ref] lsa_TransSidArray3 *sids, [in] lsa_LookupNamesLevel level, - [in,out] uint32 *count, + [in,out,ref] uint32 *count, [in] uint32 unknown1, [in] uint32 unknown2 ); -- cgit From 5c930e5a7b1bec99217b758f4825fa74884c73d0 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 18 Feb 2008 16:51:32 +0100 Subject: Fix IDL for lsa_LookupNames3 and lsa_LookupNames4. Guenther (This used to be commit 2eda5bcbfa8fccb121e5621b45c2bd1d86f6e71e) --- source3/librpc/idl/lsa.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index ccac66b172..38f3489a9f 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -960,7 +960,7 @@ import "security.idl"; [in] policy_handle *handle, [in,range(0,1000)] uint32 num_names, [in,size_is(num_names)] lsa_String names[], - [out,ref] lsa_RefDomainList *domains, + [out,ref] lsa_RefDomainList **domains, [in,out,ref] lsa_TransSidArray3 *sids, [in] lsa_LookupNamesLevel level, [in,out,ref] uint32 *count, @@ -1048,7 +1048,7 @@ import "security.idl"; NTSTATUS lsa_LookupNames4( [in,range(0,1000)] uint32 num_names, [in,size_is(num_names)] lsa_String names[], - [out,ref] lsa_RefDomainList *domains, + [out,ref] lsa_RefDomainList **domains, [in,out,ref] lsa_TransSidArray3 *sids, [in] lsa_LookupNamesLevel level, [in,out,ref] uint32 *count, -- cgit From c5e4455e074bb4be65dbaf8fdb3f1c8bfe93f900 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Feb 2008 15:46:35 +0100 Subject: Add lsa_PolicyAccessMask to lsa.idl. Guenther (This used to be commit 5fad28beec7eacd32f434a3bbfcaeb41640dfd22) --- source3/librpc/idl/lsa.idl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 38f3489a9f..6b38c5f74d 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -117,6 +117,21 @@ import "security.idl"; lsa_QosInfo *sec_qos; } lsa_ObjectAttribute; + typedef [public,bitmap32bit] bitmap { + LSA_POLICY_VIEW_LOCAL_INFORMATION = 0x00000001, + LSA_POLICY_VIEW_AUDIT_INFORMATION = 0x00000002, + LSA_POLICY_GET_PRIVATE_INFORMATION = 0x00000004, + LSA_POLICY_TRUST_ADMIN = 0x00000008, + LSA_POLICY_CREATE_ACCOUNT = 0x00000010, + LSA_POLICY_CREATE_SECRET = 0x00000020, + LSA_POLICY_CREATE_PRIVILEGE = 0x00000040, + LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS = 0x00000080, + LSA_POLICY_SET_AUDIT_REQUIREMENTS = 0x00000100, + LSA_POLICY_AUDIT_LOG_ADMIN = 0x00000200, + LSA_POLICY_SERVER_ADMIN = 0x00000400, + LSA_POLICY_LOOKUP_NAMES = 0x00000800 + } lsa_PolicyAccessMask; + /* notice the screwup with the system_name - thats why MS created OpenPolicy2 */ [public] NTSTATUS lsa_OpenPolicy ( -- cgit From 8f7fe454c4669d791e4a3854fe5c0399431473a3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Feb 2008 15:47:26 +0100 Subject: Use lsa_PolicyAccessMask in lsa_OpenPolicy/2. Guenther (This used to be commit 2b28ca34a1aad151ad712e5ecbb2a77c66d2b671) --- source3/librpc/idl/lsa.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 6b38c5f74d..228634ea1f 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -137,7 +137,7 @@ import "security.idl"; [public] NTSTATUS lsa_OpenPolicy ( [in,unique] uint16 *system_name, [in] lsa_ObjectAttribute *attr, - [in] uint32 access_mask, + [in] lsa_PolicyAccessMask access_mask, [out] policy_handle *handle ); @@ -752,7 +752,7 @@ import "security.idl"; [public] NTSTATUS lsa_OpenPolicy2 ( [in,unique] [string,charset(UTF16)] uint16 *system_name, [in] lsa_ObjectAttribute *attr, - [in] uint32 access_mask, + [in] lsa_PolicyAccessMask access_mask, [out] policy_handle *handle ); -- cgit From eaeb55ee9fa0989b4830f98e65c98dfa9ee731c2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Feb 2008 16:13:39 +0100 Subject: Move MAX_REF_DOMAINS to lsa.idl. Guenther (This used to be commit 8f54ba22d21eb014624670d8fdba7a63d1af684d) --- source3/librpc/idl/lsa.idl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 228634ea1f..12be4d835b 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -375,6 +375,8 @@ import "security.idl"; } lsa_TransSidArray; const int LSA_REF_DOMAIN_LIST_MULTIPLIER = 32; + const int MAX_REF_DOMAINS = LSA_REF_DOMAIN_LIST_MULTIPLIER; + typedef struct { [range(0,1000)] uint32 count; [size_is(count)] lsa_DomainInfo *domains; -- cgit From 1affdac7ca14542d79c03670c75e6240c309a11d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Feb 2008 16:03:17 +0100 Subject: Move MAX_LOOKUP_SIDS to lsa.idl. Guenther (This used to be commit 61da5b8c003f9c8785a901fadb06f0dbb8139c5f) --- source3/librpc/idl/lsa.idl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 12be4d835b..68dc0497da 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -425,6 +425,9 @@ import "security.idl"; [size_is(count)] lsa_TranslatedName *names; } lsa_TransNameArray; + /* This number is based on Win2k and later maximum response allowed */ + const int MAX_LOOKUP_SIDS = 0x5000; /* 20480 */ + [public] NTSTATUS lsa_LookupSids ( [in] policy_handle *handle, [in,ref] lsa_SidArray *sids, -- cgit From f610e1fa526e53425a71169b0a6c28905faed615 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 14 Feb 2008 16:08:50 +0100 Subject: lsa.idl: don't use ascstr_noterm anymore metze (This used to be commit 1937d19623029cc4ac0f2c4b336b6460399fa509) --- source3/librpc/idl/lsa.idl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 68dc0497da..d25d93adc5 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -33,9 +33,9 @@ import "security.idl"; } lsa_Strings; typedef [public] struct { - [value(strlen_m(string))] uint16 length; - [value(strlen_m(string))] uint16 size; - ascstr_noterm *string; + [value(strlen(string))] uint16 length; + [value(strlen(string))] uint16 size; + [charset(DOS),size_is(size),length_is(length)] uint8 *string; } lsa_AsciiString; /******************/ -- cgit From 48bffb0f34d7ea3dd875094b33410fe048b61d4e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 15 Feb 2008 14:56:07 +0100 Subject: lsa.idl: add lsa_AsciiStringLarge metze (This used to be commit bf5da9ea08f28f37aecc0674bd9322f0f0cbd82e) --- source3/librpc/idl/lsa.idl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index d25d93adc5..0079840366 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -38,6 +38,12 @@ import "security.idl"; [charset(DOS),size_is(size),length_is(length)] uint8 *string; } lsa_AsciiString; + typedef [public] struct { + [value(strlen(string))] uint16 length; + [value(strlen(string)+1)] uint16 size; + [charset(DOS),size_is(size),length_is(length)] uint8 *string; + } lsa_AsciiStringLarge; + /******************/ /* Function: 0x00 */ NTSTATUS lsa_Close ( -- cgit From 364ce40643c44085c016c2d9ad8e1bb02edf6a8a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 19 Feb 2008 14:44:50 +0100 Subject: lsa.idl: use strlen_m_term() in lsa_StringLarge to support NULL strings metze (This used to be commit d98ac73122d44f3a92531b4ebbe09401652b89c7) --- source3/librpc/idl/lsa.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index 0079840366..a705306fdc 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -23,7 +23,7 @@ import "security.idl"; typedef [public] struct { [value(2*strlen_m(string))] uint16 length; - [value(2*(strlen_m(string)+1))] uint16 size; + [value(2*strlen_m_term(string))] uint16 size; [charset(UTF16),size_is(size/2),length_is(length/2)] uint16 *string; } lsa_StringLarge; -- cgit From 5e7cc85a12ff08ab53d3c0a2fd22a45e332c4ab3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 19 Feb 2008 14:47:22 +0100 Subject: lsa.idl: strlen_m*() also for the lsa_AsciiString* versions We already did this before b994f899b42d294c0418bdc82660a2f7510667d6. This is needed to handle NULL strings, where strlen() would crash... Maybe we should add a strlen_a() and strlen_a_term() later... metze (This used to be commit c445a17a91827c6c95b3a1cda9b78f5cdd41aa55) --- source3/librpc/idl/lsa.idl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/librpc/idl/lsa.idl') diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index a705306fdc..ee8a2fe6b2 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -33,14 +33,14 @@ import "security.idl"; } lsa_Strings; typedef [public] struct { - [value(strlen(string))] uint16 length; - [value(strlen(string))] uint16 size; + [value(strlen_m(string))] uint16 length; + [value(strlen_m(string))] uint16 size; [charset(DOS),size_is(size),length_is(length)] uint8 *string; } lsa_AsciiString; typedef [public] struct { - [value(strlen(string))] uint16 length; - [value(strlen(string)+1)] uint16 size; + [value(strlen_m(string))] uint16 length; + [value(strlen_m_term(string))] uint16 size; [charset(DOS),size_is(size),length_is(length)] uint8 *string; } lsa_AsciiStringLarge; -- cgit