I want to connect to a ActiveDirectory using c#.
I need to be able to connect to an DC which I can only resolve using an IP Address (which I have).
The next step is to find a computer in the DC address leases to resolve the IP address of a computername entered by a user.
Can someone give me a heads up?
I should be using
DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://DC-IpAddress");
directoryEntry.Path = "LDAP://(What should I enter here for "Address Leases"?);
then I need a returned value which gives me the IP-Address of target Computer.
Hope you folks can help me out a bit.
FYI: The DHCP Server is installed on the target DC. just in case ;)