diff options
author | Christian Ambach <ambi@samba.org> | 2011-09-01 16:09:01 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2011-11-24 19:01:08 +0100 |
commit | 53ad886f75f189a7c865acf455398c3f3ce38111 (patch) | |
tree | e76e7b15fbff10b794174cda230352f5d9ca77e8 | |
parent | 717a27ba2227764ba14c205eca276ed67e752a59 (diff) | |
download | samba-53ad886f75f189a7c865acf455398c3f3ce38111.tar.gz samba-53ad886f75f189a7c865acf455398c3f3ce38111.tar.bz2 samba-53ad886f75f189a7c865acf455398c3f3ce38111.zip |
security: add local authority well-known SIDs
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
-rw-r--r-- | libcli/security/dom_sid.h | 1 | ||||
-rw-r--r-- | libcli/security/util_sid.c | 2 | ||||
-rw-r--r-- | source3/lib/util_wellknown.c | 6 |
3 files changed, 9 insertions, 0 deletions
diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index 5886ce31c6..df57bd1d9e 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -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; diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c index 84ac0f1dbc..f87d3ebe79 100644 --- a/libcli/security/util_sid.c +++ b/libcli/security/util_sid.c @@ -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 */ diff --git a/source3/lib/util_wellknown.c b/source3/lib/util_wellknown.c index 19ac7cee34..f3c0f17a2a 100644 --- a/source3/lib/util_wellknown.c +++ b/source3/lib/util_wellknown.c @@ -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 }}; |