【发布时间】:2015-07-09 01:16:51
【问题描述】:
我正在使用 ADFS 2.0 实施 SSO。我正在使用 Windows Server 2008 R2 标准版。现在,我想将用户登录的尝试次数限制为 3。我遇到了this,它建议我设置以下三个参数:
- 启用外联网锁定
- ExtranetLockoutThreshold
- 外联网观察窗口
我推荐 this 注册并将 ADFS 2.0 管理单元添加到 windows powershell。
但是,当我查询 Get-ADFSProperties 时,我没有得到上面列出的三个属性。
同样可以理解的是,执行此命令时出现以下错误: Set-AdfsProperties -EnableExtranetLockout $true -ExtranetLockoutThreshold 15 -ExtranetObservationWindow (new-timespan -Minutes 30)
错误信息是:
Set-ADFSProperties : A parameter cannot be found that matches parameter name 'EnableExtranetLockout'.
在 line:1 char:42
Set-AdfsProperties -EnableExtranetLockout <<<< $true -ExtranetLockoutThreshold 15 -ExtranetObservationWindow ( new-timespan -Minutes 30 )
CategoryInfo : InvalidArgument: (:) [Set-ADFSProperties], ParameterBindingException
FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.IdentityServer.PowerShell.Commands.SetServiceProperties Command
here 已经提到了这个错误,但这不适用于我的情况,因为属性没有首先被列出!
如果有任何帮助或建议,我将不胜感激。
谢谢!
【问题讨论】:
-
根据technet.microsoft.com/en-us/library/dn486806.aspx,此功能仅适用于 Windows Server 2012 R2 中的 AD FS,我认为我有。我有 Windows Server 2008 R2,但我不知道如何实现它。请帮忙!
标签: powershell single-sign-on windows-server-2008-r2 adfs2.0 lockout