s4:security Bring in #defines for the user and primary group token location
authorAndrew Bartlett <abartlet@samba.org>
Sat, 14 Aug 2010 03:26:35 +0000 (13:26 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 17 Aug 2010 23:30:08 +0000 (09:30 +1000)
This will allow us to stop duplicating the user and primary group SID in the
struct security_token, and therefore make it more like the NT_USER_TOKEN
in Samba3.

Andrew Bartlett

source4/libcli/security/security.h

index 585170ed61c5f017d23e3cbf2a16c9d53e2e74fe..236096560c13f8f8d4928eb15beeb595f7496da6 100644 (file)
@@ -22,6 +22,9 @@
 
 #include "librpc/gen_ndr/security.h"
 
+#define PRIMARY_USER_SID_INDEX 0
+#define PRIMARY_GROUP_SID_INDEX 1
+
 enum security_user_level {
        SECURITY_ANONYMOUS            = 0,
        SECURITY_USER                 = 10,