Reputation:
What would the LDAP connection string for contoso.com be?
What about for test.contoso.com?
Thanks!
Upvotes: 3
Views: 12869
Reputation: 2321
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";
Upvotes: 7