PPG*_*Man 7 asp.net distribution active-directory active-directory-group
我正在使用ASP.net与C#,并对Active Directory有一点了解.我已经完成了以下步骤编写程序的任务:
ASP.net应用程序被赋予用户的用户名.
应用程序应使用给定的用户名查询用户的所有组.
然后,应用程序应将这些组显示在两个单独的列表中,一个由通讯组组成,另一个列表中包含其余组.
现在,查询所有组很容易.但是,如何检查该组是否在分发组中?
我没有得到更多的信息.
我可以检查的任何属性或东西?
您可以从名为Groupe-Type (最后一行)的属性中检索此信息。
(0x00000001) : Specifies a group that is created by the system.
(0x00000002) : Specifies a group with global scope.
(0x00000004) : Specifies a group with domain local scope.
(0x00000008) : Specifies a group with universal scope.
(0x00000010) : Specifies an APP_BASIC group for Windows Server Authorization Manager.
(0x00000020) : Specifies an APP_QUERY group fir Windows Server Authorization Manager.
(0x80000000) :Specifies a security group. If this flag is not set, then the group is a distribution group.
Run Code Online (Sandbox Code Playgroud)
您可以在这个答案中或在另一个答案的底部找到一种不同的方法来检索用户所属的组。
您可以在此处找到如何检索用户。
| 归档时间: |
|
| 查看次数: |
4062 次 |
| 最近记录: |