summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-30 02:28:28 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-30 02:28:28 +0000
commit6b1367a7bcd23bf7d56f20647a806840ecc09882 (patch)
tree47489c16d82f28b01e256a0d6cb992ffb9820b3c /source3/lib
parent49cd08fdb80c3b0fa970e24cc473050fba43bf77 (diff)
downloadsamba-6b1367a7bcd23bf7d56f20647a806840ecc09882.tar.gz
samba-6b1367a7bcd23bf7d56f20647a806840ecc09882.tar.bz2
samba-6b1367a7bcd23bf7d56f20647a806840ecc09882.zip
Fix the compile issue in bin/samtest, and make the 'system' token just have the
System sid. This avoids comparing with ACEs that we don't yet support in the ADS Domain security descriptor. (This used to be commit ace7738e123b28f69c290f9f1de50011d230e14b)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sid.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 9e533eb9fd..1439471f64 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -61,7 +61,7 @@ NT_USER_TOKEN anonymous_token = {
static DOM_SID system_sid_array[4];
NT_USER_TOKEN system_token = {
- 4,
+ 1,
system_sid_array
};
@@ -134,10 +134,7 @@ void generate_wellknown_sids(void)
sid_copy( &anonymous_token.user_sids[2], &global_sid_Anonymous);
/* Create the system token. */
- sid_copy( &system_token.user_sids[0], &global_sid_World);
- sid_copy( &system_token.user_sids[1], &global_sid_Authenticated_Users);
- sid_copy( &system_token.user_sids[2], &global_sid_Builtin_Administrators);
- sid_copy( &system_token.user_sids[3], &global_sid_System);
+ sid_copy( &system_token.user_sids[0], &global_sid_System);
initialised = True;
}