1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/librpc/idl/gmsa.idl
Joseph Sutton 35611f2ba0 gmsa.idl: Add definition for MANAGEDPASSWORD_BLOB
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-11-20 21:50:32 +00:00

45 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Type definitions for Group Managed Service Accounts
*
* Derived from [MS-ADTS] 2.2.19 MSDS-MANAGEDPASSWORD_BLOB.
*/
#include "idl_types.h"
[
uuid("e43b8cf6-1ead-11ee-aed1-e3597136ce70"),
version(0.0),
pointer_default(unique),
helpstring("Active Directory Group Managed Service Accounts")
]
interface gmsa
{
/* Public structures. */
typedef [gensize] struct {
[relative_short] secret_u16string *current;
[relative_short] secret_u16string *previous;
/*
* MS-ADTS states that these fields must be placed on a 64bit
* boundary, but samples obtained from Windows are found not to
* be so. In practice, theyre offset by two bytes. Thats why
* we need NOALIGN.
*/
[relative_short, flag(NDR_NOALIGN)] hyper *query_interval;
[relative_short, flag(NDR_NOALIGN)] hyper *unchanged_interval;
} MANAGEDPASSWORD_BLOB_PASSWORDS;
typedef [public] struct {
[value(1)] uint16 version;
[value(0)] uint16 reserved;
/*
* The size of the entire blob. 8 bytes account for the
* version field, the reserved field, and the length field
* itself.
*/
[value(8 + ndr_size_MANAGEDPASSWORD_BLOB_PASSWORDS(&passwords,
ndr->flags))] uint32 length;
MANAGEDPASSWORD_BLOB_PASSWORDS passwords;
} MANAGEDPASSWORD_BLOB;
}