What would the LDAP connection string for c开发者_运维问答ontoso.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";
精彩评论