Active Directory对象的GetAccessControl?

编程入门 行业动态 更新时间:2024-10-19 08:55:51
本文介绍了Active Directory对象的GetAccessControl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好! System.Security.AccessControl.FileSecurity(GetAccessControl)工作正常。 现在我想对Active Directory对象使用GetAccessControl 电脑。我已经搜索了很多,但我找不到任何解决方案。 任何人都可以通过示例或链接来解决我的问题吗? 非常感谢提前!!!

Hallo! System.Security.AccessControl.FileSecurity (GetAccessControl) works fine. Now I would like to use GetAccessControl for Active Directory Objects like computers. I''ve searched a lot but I''ve found no solution. Can anyone help me with an example or with a link to solve my problem? Thanks a lot in advance!!!

推荐答案

试用WMI chanmm " KarlM" < Ma ****** @ newsgroup.nospamwrote in message 新闻:D9 ************************ ********** @ microsof t ... Try WMI chanmm "KarlM" <Ma******@newsgroup.nospamwrote in message news:D9**********************************@microsof t... 你好! System.Security.AccessControl。 FileSecurity(GetAccessControl)工作正常。 现在我想将GetAccessControl用于Active Directory对象,例如 计算机。我已经搜索了很多,但我找不到任何解决方案。 任何人都可以通过示例或链接来解决我的问题吗? 非常感谢! Hallo! System.Security.AccessControl.FileSecurity (GetAccessControl) works fine. Now I would like to use GetAccessControl for Active Directory Objects like computers. I''ve searched a lot but I''ve found no solution. Can anyone help me with an example or with a link to solve my problem? Thanks a lot in advance!!!

不,你不应该走这条路,FCL的V2有你需要的所有东西来获得AD 对象安全编程正确。 Willy。 " chanmm" < ch ***** @ hotmailwrote in message news:%2 **************** @ TK2MSFTNGP05.phx.gbl .. 。 |试试WMI | | chanmm | | " KarlM" < Ma ****** @ newsgroup.nospamwrote in message |新闻:D9 ********************************** @ microsof t ... |你好! | System.Security.AccessControl.FileSecurity(GetAccessControl)工作 罚款。 | > |现在我想将GetAccessControl用于Active Directory对象 就像 |电脑。我搜索了很多,但我找不到解决方案。 |任何人都可以帮我一个例子或一个链接来解决我的问题吗? | > |非常感谢提前!!! | | No, you shouldn''t go that road, V2 of the FCL has all you need to get AD object security programming correct. Willy. "chanmm" <ch*****@hotmailwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl... | Try WMI | | chanmm | | "KarlM" <Ma******@newsgroup.nospamwrote in message | news:D9**********************************@microsof t... | Hallo! | System.Security.AccessControl.FileSecurity (GetAccessControl) works fine. | > | Now I would like to use GetAccessControl for Active Directory Objects like | computers. I''ve searched a lot but I''ve found no solution. | Can anyone help me with an example or with a link to solve my problem? | > | Thanks a lot in advance!!! | |

" ; KarlM" < Ma ****** @ newsgroup.nospamwrote in message 新闻:D9 ************************ ********** @ microsof t ... |你好! | System.Security.AccessControl.FileSecurity(GetAccessControl)工作正常。 | |现在我想将GetAccessControl用于Active Directory对象,例如 |电脑。我搜索了很多,但我找不到解决方案。 |任何人都可以帮我一个例子或一个链接来解决我的问题吗? | |非常感谢提前!!! 这样的事情会让你开始。 使用(DirectoryEntry computers = new DirectoryEntry(" LDAP://xxxxx/cn=computers,DC=...",...)) { foreach(计算机中的DirectoryEntry计算机。孩子们) { Console.WriteLine(computer.Properties [" cn"]。值); ActiveDirectorySecurity compSecurity = comp.ObjectSecurity; Console.WriteLine(compSecurity.GetSecurityDescript orSddlForm(AccessControlSections.Access)); } } Willy。 "KarlM" <Ma******@newsgroup.nospamwrote in message news:D9**********************************@microsof t... | Hallo! | System.Security.AccessControl.FileSecurity (GetAccessControl) works fine. | | Now I would like to use GetAccessControl for Active Directory Objects like | computers. I''ve searched a lot but I''ve found no solution. | Can anyone help me with an example or with a link to solve my problem? | | Thanks a lot in advance!!! Something like this will get you started. using(DirectoryEntry computers = new DirectoryEntry("LDAP://xxxxx/cn=computers,DC=...", ...)) { foreach(DirectoryEntry computer in computers.Children) { Console.WriteLine(computer.Properties["cn"].Value); ActiveDirectorySecurity compSecurity = comp.ObjectSecurity; Console.WriteLine(compSecurity.GetSecurityDescript orSddlForm(AccessControlSections.Access)); } } Willy.

更多推荐

Active Directory对象的GetAccessControl?

本文发布于:2023-11-15 05:41:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1591642.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对象   Active   Directory   GetAccessControl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!