LDAP path - where to find

329 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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 :)