简体   繁体   中英

LDAP path - where to find

I am trying to search for some GPO object using DirectoryServices. The first step is to bind to LDAP. I have an active directory lab environment where I created a virtual machine as a Domain Controller. In order to bind to this LDAP, I obviously need to determine the path to use in DirectoryEntry class. How can I find that path to use, is it somewhere within properties of AD domain services?

Found this GPMC Class library, may try this instead of DirectoryServices?

http://msdn.microsoft.com/en-us/library/windows/desktop/ee840126(v=vs.85).aspx

Seems you can get the GPO using samples here:

http://msdn.microsoft.com/en-us/library/windows/desktop/ee862406(v=vs.85).aspx

I never use that before. So try on your own risk :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM