From: Stefan Metzmacher Date: Thu, 1 Feb 2018 15:23:02 +0000 (+0100) Subject: libcli/security: add some more global_sid_ values required for SID filtering X-Git-Tag: tevent-0.17.0~788 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2921f025ec60687c2a6438d8442fb981a9e4f257;p=thirdparty%2Fsamba.git libcli/security: add some more global_sid_ values required for SID filtering Signed-off-by: Stefan Metzmacher Reviewed-by: Jennifer Sutton --- diff --git a/libcli/security/dom_sid.h b/libcli/security/dom_sid.h index 84e20f4aaa5..54ae3c34412 100644 --- a/libcli/security/dom_sid.h +++ b/libcli/security/dom_sid.h @@ -34,6 +34,7 @@ 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_NonUnique_Authority; extern const struct dom_sid global_sid_NT_Authority; extern const struct dom_sid global_sid_Enterprise_DCs; extern const struct dom_sid global_sid_System; @@ -41,6 +42,7 @@ extern const struct dom_sid global_sid_NULL; extern const struct dom_sid global_sid_Self; extern const struct dom_sid global_sid_Authenticated_Users; extern const struct dom_sid global_sid_Network; +extern const struct dom_sid global_sid_NTLM_Authentication; extern const struct dom_sid global_sid_Asserted_Identity; extern const struct dom_sid global_sid_Asserted_Identity_Service; extern const struct dom_sid global_sid_Asserted_Identity_Authentication_Authority; @@ -51,6 +53,12 @@ extern const struct dom_sid global_sid_Owner_Rights; extern const struct dom_sid global_sid_Anonymous; extern const struct dom_sid global_sid_Compounded_Authentication; extern const struct dom_sid global_sid_Claims_Valid; +extern const struct dom_sid global_sid_This_Organization; +extern const struct dom_sid global_sid_This_Organization_Certificate; +extern const struct dom_sid global_sid_Other_Organization; +extern const struct dom_sid global_sid_Passport_Authority; +extern const struct dom_sid global_sid_Mandatory_Label_Authority; +extern const struct dom_sid global_sid_Builtin_Package_Any_Package; extern const struct dom_sid global_sid_Builtin; extern const struct dom_sid global_sid_Builtin_Administrators; extern const struct dom_sid global_sid_Builtin_Users; diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c index 13d24e04254..6f45c1be312 100644 --- a/libcli/security/util_sid.c +++ b/libcli/security/util_sid.c @@ -52,6 +52,9 @@ const struct dom_sid global_sid_Local_Authority = /* Local Authority /* S-1-3 */ 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}}; +/* S-1-4 */ +const struct dom_sid global_sid_NonUnique_Authority = /* NonUnique Authority */ +{ 1, 0, {0,0,0,0,0,4}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; /* S-1-5 */ const struct dom_sid global_sid_NT_Authority = /* NT Authority */ { 1, 0, {0,0,0,0,0,5}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; @@ -73,6 +76,10 @@ const struct dom_sid global_sid_Restricted = /* Restricted Code */ { 1, 1, {0,0,0,0,0,5}, {12,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; #endif +/* S-1-5-64-10 NTLM Authentication */ +const struct dom_sid global_sid_NTLM_Authentication = +{ 1, 2, {0,0,0,0,0,5}, {64,10,0,0,0,0,0,0,0,0,0,0,0,0,0}}; + /* S-1-18 */ const struct dom_sid global_sid_Asserted_Identity = /* Asserted Identity */ { 1, 0, {0,0,0,0,0,18}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; @@ -112,6 +119,29 @@ const struct dom_sid global_sid_Compounded_Authentication = /* Compounded Authe /* S-1-5-21-0-0-0-497 */ const struct dom_sid global_sid_Claims_Valid = /* Claims Valid */ {1, 5, {0,0,0,0,0,5}, {21,0,0,0,497,0,0,0,0,0,0,0,0,0,0}}; + +/* S-1-5-15 This Organization */ +const struct dom_sid global_sid_This_Organization = +{ 1, 1, {0,0,0,0,0,5}, {15,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; +/* S-1-5-65-1 This Organization Certificate */ +const struct dom_sid global_sid_This_Organization_Certificate = +{ 1, 2, {0,0,0,0,0,5}, {65,1,0,0,0,0,0,0,0,0,0,0,0,0,0}}; +/* S-1-5-1000 Other Organization */ +const struct dom_sid global_sid_Other_Organization = +{ 1, 1, {0,0,0,0,0,5}, {1000,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; + +/* S-1-10 Passport Authority */ +const struct dom_sid global_sid_Passport_Authority = +{ 1, 0, {0,0,0,0,0,10}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; + +/* S-1-16 Mandatory Label Authority */ +const struct dom_sid global_sid_Mandatory_Label_Authority = +{ 1, 0, {0,0,0,0,0,16}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}; + +/* S-1-15-2-1 BUILTIN_PACKAGE_ANY_PACKAGE */ +const struct dom_sid global_sid_Builtin_Package_Any_Package = +{ 1, 2, {0,0,0,0,0,15}, {2,1,0,0,0,0,0,0,0,0,0,0,0,0,0}}; + /* S-1-5-32 */ const struct dom_sid global_sid_Builtin = /* Local well-known domain */ { 1, 1, {0,0,0,0,0,5}, {32,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};