开发者

Can you give me examples of an LDAP connection string for Active Directory?

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";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜