1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r5798: limit the size of an sid, 28 bytes complete is the biggest SID

that can be handled.

tridge: do you think it would make sense to change the sub_auth[num_auths] to sub_auth[5],
        so we can copy the struct by sid1 = sid2;
	comments please

metze
This commit is contained in:
Stefan Metzmacher 2005-03-15 14:37:02 +00:00 committed by Gerald (Jerry) Carter
parent 483bb1418f
commit 2fc8a604b0

View File

@ -186,7 +186,7 @@ interface security
so you can't copy them using assignment */
typedef [public,noprint] struct {
uint8 sid_rev_num; /**< SID revision number */
uint8 num_auths; /**< Number of sub-authorities */
[range(0,5)] int8 num_auths; /**< Number of sub-authorities */
uint8 id_auth[6]; /**< Identifier Authority */
uint32 sub_auths[num_auths];
} dom_sid;