我试图在我的应用程序中使用模拟来连接用户邮箱并添加/删除约会。Exchange Server 2010中的模拟问题
我创建了一个名为“EWSAdmin”的帐户,并运行在他们以下命令EMS:
New-ManagementScope -Name:"MyEWSImpersonation" -RecipientRestrictionFilter
{memberofgroup -eq "cn=My User Container,DC=MyDomain,DC=local"}
New-ManagementRoleAssignment -Name:"MyEWSImpersonation" -Role:ApplicationImpersonation
-User:"[email protected]" -CustomRecipientWriteScope:"MyEWSImpersonation"
只是为了混淆问题,我打电话给我的范围EWSImpersonation了。
当我尝试连接到用户的邮箱查看预约(使用第三方DLL),我收到以下错误:
Throwing GeneralException e=The account does not have permission to
impersonate the requested user.
如果有人可以帮我诊断这一点,我会很感激它。
感谢
尼克
感谢分享这个,它可能会在某些时候来得心应手。互联网啤酒为雅jesse :) – grapkulec 2014-12-03 08:57:13