System.Security.Principal.WellKnownSidType [英] System.Security.Principal.WellKnownSidType

查看:188
本文介绍了System.Security.Principal.WellKnownSidType的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直依靠WellKnownSidType枚举来列出Windows框中的所有知名SID.  但是,似乎至少有以下SID没有出现在枚举中(使用我给他们提供的昵称):

I have been relying on the WellKnownSidType enumeration to list all the well-known SIDs on a Windows box.  However, it appears that there are at least the following SIDs that do not appear in the enumeration (with nicknames I've given them):

AllAppPackages = S-1-15-2-1
LocalAccount = S-1-5-113
LocalAccountAndMemberOfAdministratorsGroup = S-1-5-114

AllAppPackages=S-1-15-2-1
LocalAccount=S-1-5-113
LocalAccountAndMemberOfAdministratorsGroup=S-1-5-114

为什么这些不属于枚举?  还有哪些其他内置SID不属于枚举?

Why are these not part of the enumeration?  And, what other built-in SIDs are there that are not part of the enumeration?

我需要能够确定所有可能在其中找到访问控制条目的机器本地SID.

I need to be able to determine all the machine-local SIDs for which I might find access control entries.

谢谢!

推荐答案

向枚举添加新成员可能会破坏旧代码.在Windows中使用枚举表示不断增长的SID 是个坏主意.猜猜这是您的最佳时机.  

Adding new members to an enum may break old code. Using an enum to represent the growing SIDs in Windows is a bad idea. Guess it is pinvoke time for you.  

如果您想要更新的SID列表,请 2.4.2.4众所周知的SID结构.

If you want a more recent list of SIDs check 2.4.2.4 Well-Known SID Structures.


这篇关于System.Security.Principal.WellKnownSidType的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆