Active Directory LDS 异常
嘿堆栈!我刚刚在我的开发计算机中安装了 AD LDS 实例。配置如下:
<membership defaultProvider="ActiveDirectoryProvider">
<providers>
<add name="ActiveDirectoryProvider"
connectionStringName="ActiveDirectoryConnection"
connectionUsername="CN=adldsadmin,CN=Users,CN=TestNet,DC=contoso,DC=com"
connectionPassword="123456" type="System.Web.Security.ActiveDirectoryMembershipProvider,System.Web,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
connectionProtection="None"
enableSearchMethods="true"
applicationName="App1" />
</providers>
</membership>
我如何得到以下异常:
指定的目录服务 属性或值不存在。
adldsadmin 用户位于所有组中。我做错了什么?
谢谢!
Hey stack! I just installed a AD LDS instance in my development machine. The config is the following:
<membership defaultProvider="ActiveDirectoryProvider">
<providers>
<add name="ActiveDirectoryProvider"
connectionStringName="ActiveDirectoryConnection"
connectionUsername="CN=adldsadmin,CN=Users,CN=TestNet,DC=contoso,DC=com"
connectionPassword="123456" type="System.Web.Security.ActiveDirectoryMembershipProvider,System.Web,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
connectionProtection="None"
enableSearchMethods="true"
applicationName="App1" />
</providers>
</membership>
How ever I get the following exception:
The specified directory service
attribute or value does not exist.
The adldsadmin user is in all of the groups. What am I doing wrong?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我发现问题出在哪里了。显然与身份验证有关。解决办法是:
cd %windir%
dsmgmt
并按 Enter 键。在每行后按 Enter 键键入以下命令:
退出
现在它应该可以工作了。
Okay, I found what the problem was. Apparently something to do with authentication. The solution is:
cd %windir%
dsmgmt
and press enter.Type the following commands pressing enter after each line:
quit
Now it should work.