安全组或通讯组 [英] Security Group or Distribution Group

查看:95
本文介绍了安全组或通讯组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何检查ActiveDirectory中的条目是用户,安全组还是通讯组.

谢谢,
Nagendra

Hi all,

How can i check whether an entry in ActiveDirectory is a User, a SecurityGroup or a DistributionGroup.

Thanks,
Nagendra

推荐答案

您可以尝试检查DirectoryEntry.SchemaClassName.用类名"User"指示用户.我不知道其他人是谁(但您应该可以在Google上找到它们).
You could try checking the DirectoryEntry.SchemaClassName. Users are indicated with a class name of "User". I don''t know what the others are (but you should be able to find them on google).


Ahh John似乎在上面,所以忘了我说的除了我的广告:)
AD不是我的强项,但我相信您应该能够使用DirectoryEntry的Path poroperty来查看它是否是一个用户CN =应该存在,CN =分发组等.

我知道这又是发布广告的规则,但我喜欢这篇文章,它是主题和代码项目的主题,不是广告.我喜欢精巧文章:
方法:(几乎)通过C#将Active Directory中的所有内容 [ thund3rstruck [ ^ ]
Ahh John seems to be on top of it so forget what I said except for my ad :)
AD isn''t my strong suit but I beleave you should be able to use the Path poroperty of DirectoryEntry to see if it''s a user CN=user should be present, CN=Distribution Groups ect.

I know it''s again the rules to post ads but I love this article and it''s on subject and on the code project so not an ad. I love this briliant article:
Howto: (Almost) Everything In Active Directory via C#[^]
Just realized, it could be misinterpreted as it me who wrote the article. I have not written the article the article has been written by thund3rstruck[^]


这篇关于安全组或通讯组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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