summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-09-25 05:11:25 +0000
committerJeremy Allison <jra@samba.org>2002-09-25 05:11:25 +0000
commitcfd1bf250b417f3ba3ad21ff681ab282311bb7eb (patch)
treecde34407695167849f1e7de35a3327e93f4e4d03 /source/lib
parent930c6710fe076b52ad21addf5fcda834f85e15a9 (diff)
downloadsamba-cfd1bf250b417f3ba3ad21ff681ab282311bb7eb.tar.gz
samba-cfd1bf250b417f3ba3ad21ff681ab282311bb7eb.tar.xz
samba-cfd1bf250b417f3ba3ad21ff681ab282311bb7eb.zip
Merge of "profile acls" code.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util_sid.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c
index 8bb06e8866c..e9635fc7f84 100644
--- a/source/lib/util_sid.c
+++ b/source/lib/util_sid.c
@@ -30,13 +30,11 @@ extern fstring global_myworkgroup;
* Some useful sids
*/
-DOM_SID global_sid_Builtin; /* Local well-known domain */
DOM_SID global_sid_World_Domain; /* Everyone domain */
DOM_SID global_sid_World; /* Everyone */
DOM_SID global_sid_Creator_Owner_Domain; /* Creator Owner domain */
DOM_SID global_sid_NT_Authority; /* NT Authority */
DOM_SID global_sid_NULL; /* NULL sid */
-DOM_SID global_sid_Builtin_Guests; /* Builtin guest users */
DOM_SID global_sid_Authenticated_Users; /* All authenticated rids */
DOM_SID global_sid_Network; /* Network rids */
@@ -44,6 +42,11 @@ static DOM_SID global_sid_Creator_Owner; /* Creator Owner */
static DOM_SID global_sid_Creator_Group; /* Creator Group */
static DOM_SID global_sid_Anonymous; /* Anonymous login */
+DOM_SID global_sid_Builtin; /* Local well-known domain */
+DOM_SID global_sid_Builtin_Administrators;
+DOM_SID global_sid_Builtin_Users;
+DOM_SID global_sid_Builtin_Guests; /* Builtin guest users */
+
/*
* An NT compatible anonymous token.
*/
@@ -99,6 +102,8 @@ const char *sid_type_lookup(uint32 sid_type)
void generate_wellknown_sids(void)
{
string_to_sid(&global_sid_Builtin, "S-1-5-32");
+ string_to_sid(&global_sid_Builtin_Administrators, "S-1-5-32-544");
+ string_to_sid(&global_sid_Builtin_Users, "S-1-5-32-545");
string_to_sid(&global_sid_Builtin_Guests, "S-1-5-32-546");
string_to_sid(&global_sid_World_Domain, "S-1-1");
string_to_sid(&global_sid_World, "S-1-1-0");