]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samr/netlogon.idl: add [flag(NDR_SECRET)] in some more places
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Nov 2024 16:48:05 +0000 (17:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Dec 2024 16:46:37 +0000 (16:46 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
librpc/idl/netlogon.idl
librpc/idl/samr.idl

index f9672b1bf547650bdb02d6e2bbe362f17214f186..54c46adeb81893441379cafa71dba8a8b23672b2 100644 (file)
@@ -240,11 +240,11 @@ interface netlogon
        } netr_LogonLevel;
 
        typedef [public,flag(NDR_PAHEX)] struct {
-               uint8 key[16];
+               [flag(NDR_SECRET)] uint8 key[16];
        } netr_UserSessionKey;
 
        typedef [public,flag(NDR_PAHEX)] struct {
-               uint8 key[8];
+               [flag(NDR_SECRET)] uint8 key[8];
        } netr_LMSessionKey;
 
        /* Flags for user_flags below */
@@ -281,11 +281,11 @@ interface netlogon
                uint32 primary_gid;
                samr_RidWithAttributeArray groups;
                netr_UserFlags user_flags;
-               [flag(NDR_SECRET)] netr_UserSessionKey key;
+               netr_UserSessionKey key;
                lsa_StringLarge logon_server;
                lsa_StringLarge logon_domain;
                dom_sid2 *domain_sid;
-               [flag(NDR_SECRET)] netr_LMSessionKey LMSessKey;
+               netr_LMSessionKey LMSessKey;
                samr_AcctFlags acct_flags;
                uint32 sub_auth_status;
                NTTIME last_successful_logon;
@@ -1558,7 +1558,7 @@ interface netlogon
        } NL_PASSWORD_VERSION;
 
        typedef [flag(NDR_PAHEX)] struct {
-               uint8 data[512];
+               [flag(NDR_SECRET)] uint8 data[512];
                uint32 length;
        } netr_CryptPassword;
 
@@ -1621,7 +1621,7 @@ interface netlogon
                [in]  [string,charset(UTF16)] uint16 *computer_name,
                [in,ref] netr_Authenticator *credential,
                [out,ref] netr_Authenticator *return_authenticator,
-               [in,ref]  [size_is(buffer_len)] uint8 *opaque_buffer,
+               [in,ref]  [size_is(buffer_len)][flag(NDR_SECRET)] uint8 *opaque_buffer,
                [in] uint32 buffer_len
                );
 
index 5da0fd75851561cd099a46d141c320b9fdf260f8..d936d17164021e906db411c31f543aa455f0feef 100644 (file)
@@ -898,7 +898,7 @@ import "misc.idl", "lsa.idl", "security.idl";
        } samr_UserInfo17;
 
        typedef [public, flag(NDR_PAHEX)] struct {
-               uint8 hash[16];
+               [flag(NDR_SECRET)] uint8 hash[16];
        } samr_Password;
 
        typedef struct {
@@ -989,7 +989,7 @@ import "misc.idl", "lsa.idl", "security.idl";
        } samr_UserInfo21;
 
        typedef [public, flag(NDR_PAHEX)] struct {
-               uint8 data[516];
+               [flag(NDR_SECRET)] uint8 data[516];
        } samr_CryptPassword;
 
        typedef struct {
@@ -1003,7 +1003,7 @@ import "misc.idl", "lsa.idl", "security.idl";
        } samr_UserInfo24;
 
        typedef [flag(NDR_PAHEX)] struct {
-               uint8 data[532];
+               [flag(NDR_SECRET)] uint8 data[532];
        } samr_CryptPasswordEx;
 
        typedef struct {