活动目录 LDAP 字符串?
我正在点击链接
尝试实现我的应用程序中也是如此。我对 LDAP 连接字符串感到困惑,因为我没有任何 .com 作为域。我确实有这样的简单域“aaa-bbbb.xxxx”。
我正在尝试这种方式“LDAP://ipaddress/cn=users,dc=aaa-bbbb,dc=xxxx”,但
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" connectionUsername="Username" connectionPassword="Password"/>
</providers>
</membership>
我无法验证用户?
I am following the link
Trying to implement the same in my application.I am confused about the LDAP connection string beacause i don't have any .com as domain.I do have simple domain like this "aaa-bbbb.xxxx".
I m trying this way "LDAP://ipaddress/cn=users,dc=aaa-bbbb,dc=xxxx" and
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" connectionUsername="Username" connectionPassword="Password"/>
</providers>
</membership>
but i am unable to validate the user ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以轻松地了解您的 LDAP 路径是什么样的 - 只需转到 LDAP://RootDSE 并检查那里的各种属性即可。
要么使用一些代码:
或者像我的 Beavertail ADSI Browser 这样的工具(用100% C# 代码,免费提供)
You can easily find out what your LDAP paths look like - just go to
LDAP://RootDSE
and checkout the various properties there.Either use some code:
or a tool like my Beavertail ADSI Browser (written in 100% C# code, and freely available)