[英]Active Directory ValidateCredentials breaks after Windows 10 November update
I have an existing project that uses the following for authenticating locally on dev machine我有一个现有的项目,它使用以下内容在开发机器上进行本地身份验证
principalContext.ValidateCredentials("bondjames", "drno", ContextOptions.Negotiate);
Please note this worked fine on Windows 10 up til this morning, am aware of previous issues with this.请注意,直到今天早上,这在 Windows 10 上运行良好,我知道以前的问题。 I installed Windows 10 update 1511 and now it throws a FileNotFoundException.
我安装了 Windows 10 更新 1511,现在它抛出 FileNotFoundException。 I've read of issues with the update but can't find anything on this.
我已经阅读了有关更新的问题,但在这方面找不到任何内容。
If I provide an invalid password it simply returns false.如果我提供无效密码,它只会返回 false。
There was a similar issue logged with microsoft connect which suggested it to be missing registry entries in使用microsoft connect记录了一个类似的问题,这表明它在
HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows NT\\CurrentVersion
, specifically: RegisteredOwner
and RegisteredOrganization
. HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows NT\\CurrentVersion
,特别是: RegisteredOwner
和RegisteredOrganization
。 I just put in my name and company respectively.我只是分别输入了我的名字和公司。 All tests pass now.
现在所有测试都通过了。
Note my issue would appear to have the same root cause as this question which I spotted had reference to same article.请注意,我的问题似乎与我发现的参考同一文章的问题具有相同的根本原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.