Author: metze
Date: 2005-03-15 14:37:02 +0000 (Tue, 15 Mar 2005)
New Revision: 5798

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5798

Log:
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

Modified:
   branches/SAMBA_4_0/source/librpc/idl/security.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/security.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/security.idl   2005-03-15 14:33:38 UTC 
(rev 5797)
+++ branches/SAMBA_4_0/source/librpc/idl/security.idl   2005-03-15 14:37:02 UTC 
(rev 5798)
@@ -186,7 +186,7 @@
           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;

Reply via email to