What would the LDAP connection string for contoso.com be?
What about for test.contoso.com?
Thanks!
You need the servername for where you AD is placed - then the syntax will be like this -
For Contoso.com
LDAP://[ServerName]/dc=contoso,dc=com
For test.contoso.com
LDAP://[ServerName]/dc=test,/dc=contoso,dc=com
I don't know if it's useful for you but here is an example of connecting in a C# application
DirectoryEntry de = new DirectoryEntry("LDAP://[ServerName]/dc=test,/dc=contoso,dc=com");
de.Username = "username";
de.Password = "password";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With