security: add local authority well-known SIDs
authorChristian Ambach <ambi@samba.org>
Thu, 1 Sep 2011 14:09:01 +0000 (16:09 +0200)
committerChristian Ambach <ambi@samba.org>
Thu, 24 Nov 2011 18:01:08 +0000 (19:01 +0100)
add the S-1-2 well-known SID family

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu Nov 24 19:01:08 CET 2011 on sn-devel-104

libcli/security/dom_sid.h
libcli/security/util_sid.c
source3/lib/util_wellknown.c

index 5886ce31c62a4f3869c9b9f5473173079663d15d..df57bd1d9eede0e6e0b8ce110bf31d1c18aeb859 100644 (file)
@@ -28,6 +28,7 @@
 /* Some well-known SIDs */
 extern const struct dom_sid global_sid_World_Domain;
 extern const struct dom_sid global_sid_World;
+extern const struct dom_sid global_sid_Local_Authority;
 extern const struct dom_sid global_sid_Creator_Owner_Domain;
 extern const struct dom_sid global_sid_NT_Authority;
 extern const struct dom_sid global_sid_Enterprise_DCs;
index 84ac0f1dbc4ea1013f2aadcc78ddd9dca85aebee..f87d3ebe796d92a94f0c3a55255c2868a95935f8 100644 (file)
@@ -38,6 +38,8 @@ const struct dom_sid global_sid_World_Domain =               /* Everyone domain
 { 1, 0, {0,0,0,0,0,1}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};
 const struct dom_sid global_sid_World =                      /* Everyone */
 { 1, 1, {0,0,0,0,0,1}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};
+const struct dom_sid global_sid_Local_Authority =            /* Local Authority */
+{ 1, 0, {0,0,0,0,0,2}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};
 const struct dom_sid global_sid_Creator_Owner_Domain =       /* Creator Owner domain */
 { 1, 0, {0,0,0,0,0,3}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};
 const struct dom_sid global_sid_NT_Authority =                 /* NT Authority */
index 19ac7cee348fc8a7650d91363b34f636f047c1ff..f3c0f17a2a6c9bb76c04da6908d7eacea8e584c9 100644 (file)
@@ -39,6 +39,11 @@ static const struct rid_name_map everyone_users[] = {
        { 0, "Everyone" },
        { 0, NULL}};
 
+static const struct rid_name_map local_authority_users[] = {
+       { 0, "Local" },
+       { 1, "Console Logon" },
+       { 0, NULL}};
+
 static const struct rid_name_map creator_owner_users[] = {
        { 0, "Creator Owner" },
        { 1, "Creator Group" },
@@ -70,6 +75,7 @@ static const struct rid_name_map nt_authority_users[] = {
 
 static struct sid_name_map_info special_domains[] = {
        { &global_sid_World_Domain, "", everyone_users },
+       { &global_sid_Local_Authority, "", local_authority_users },
        { &global_sid_Creator_Owner_Domain, "", creator_owner_users },
        { &global_sid_NT_Authority, "NT Authority", nt_authority_users },
        { NULL, NULL, NULL }};