开发者

LDAP Query: Administrators on a computer

开发者 https://www.devze.com 2022-12-17 08:36 出处:网络
I want to search every computer known to LDAP and list all accounts on each computer which are Administrators.

I want to search every computer known to LDAP and list all accounts on each computer which are Administrators.

I'm familiar with LDAP queries, I just don't know if this is possible, and if it is - what开发者_高级运维 the syntax would be.

Thanks in advance,

Jim


As far as I know, you can't do that. You can use, however, a script wich first performs the LDAP query and then uses the results to connect to each server and query members of the administrators group via LanManager API. If you want to do it in perl you should use Net::LDAP and Win32API::Net


You should go with System.DirectoryServices namespace.

There are some samples here: .Net Directory Services Programming - C# - Part 1

0

精彩评论

暂无评论...
验证码 换一张
取 消