]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
claims.idl: Fix AD claims encoding
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 19 Jul 2023 23:14:23 +0000 (11:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jul 2023 02:19:48 +0000 (02:19 +0000)
Up to now we have been absorbing the discriminant in the NDR padding,
and setting it to zero in the push. But if the discriminant is not set
correctly, Windows will refuse to regard any of the claims.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jul 21 02:19:48 UTC 2023 on atb-devel-224

librpc/idl/claims.idl

index d190988fb98703447ef01f092f495d4cbe333dae..90ea15585c1f8b873d1a172118a5e91e0c0e82f9 100644 (file)
@@ -63,7 +63,7 @@ interface claims
                [size_is(value_count), string, charset(UTF16)] wchar_t **values;
        } CLAIM_STRING;
 
-       typedef [switch_type(CLAIM_TYPE),nodiscriminant,flag(NDR_ALIGN8)] union {
+       typedef [switch_type(CLAIM_TYPE),flag(NDR_ALIGN8)] union {
                [case(CLAIM_TYPE_INT64)] CLAIM_INT64 claim_int64;
                [case(CLAIM_TYPE_UINT64)] CLAIM_UINT64 claim_uint64;
                [case(CLAIM_TYPE_STRING)] CLAIM_STRING claim_string;