C# 为什么在调用 AzMan 时会收到错误“无法更新密码”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10810/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why do I get the error "Unable to update the password" when calling AzMan?
提问by Magnus Lindhe
I'm doing a authorization check from a WinForms application with the help of the AzMan authorization provider from Enterprise Library and am receiving the the following error:
我正在 Enterprise Library 的 AzMan 授权提供程序的帮助下从 WinForms 应用程序进行授权检查,并收到以下错误:
Unable to update the password. The value provided as the current password is incorrect. (Exception from HRESULT: 0x8007052B) (Microsoft.Practices.EnterpriseLibrary.Security.AzMan)
Unable to update the password. The value provided as the current password is incorrect. (Exception from HRESULT: 0x8007052B) (Microsoft.Interop.Security.AzRoles)
无法更新密码。作为当前密码提供的值不正确。(来自 HRESULT 的异常:0x8007052B)(Microsoft.Practices.EnterpriseLibrary.Security.AzMan)
无法更新密码。作为当前密码提供的值不正确。(来自 HRESULT 的异常:0x8007052B)(Microsoft.Interop.Security.AzRoles)
The AzMan store is hosted in ADAM on another computer in the same domain. Other computers and users do not have this problem. The user making the call has read access to both ADAM and the AzMan store. The computer running the WinForms app and the computer running ADAM are both on Windows XP SP2.
AzMan 商店托管在同一域中另一台计算机上的 ADAM 中。其他电脑和用户没有这个问题。发出调用的用户对 ADAM 和 AzMan 存储都有读取权限。运行 WinForms 应用程序的计算机和运行 ADAM 的计算机都在 Windows XP SP2 上。
I've had access problems with AzMan before that I've resolved, but this is a new one... What am I missing?
在我解决了 AzMan 之前,我遇到了访问问题,但这是一个新问题……我错过了什么?
采纳答案by Magnus Lindhe
I found out from the event log that there was a security issue with the user making the call to AzMan from a remote computer. The user did not belong the local Users group on the computer running ADAM/AzMan. When I corrected that everything worked again.
我从事件日志中发现,用户从远程计算机调用 AzMan 存在安全问题。该用户不属于运行 ADAM/AzMan 的计算机上的本地用户组。当我纠正一切再次工作时。
回答by Magnus Lindhe
For AzMan with ASP.NET, turn on impersonation in web.config
(<identity impersonate="true" username="xx" pasword="xx" />
), and make sure with an AD administrator that the impersonation account has "reader" permissions on the AzMan store; plus, give write permissions to this account on the Temporary ASP.NET Files
folder (under C:\Windows\Microsoft.NET\<framework>
).
对于带有 ASP.NET 的 AzMan,在web.config
( <identity impersonate="true" username="xx" pasword="xx" />
) 中打开模拟,并与 AD 管理员确保模拟帐户对 AzMan 商店具有“读者”权限;另外,在Temporary ASP.NET Files
文件夹(下C:\Windows\Microsoft.NET\<framework>
)上授予此帐户的写入权限。