简体   繁体   English

Azure AD Connect-

[英]Azure AD Connect -

When I set up Azure AD Connect, I initially set the single sign on method to Password Synchronization. 设置Azure AD Connect时,最初将单点登录方法设置为“密码同步”。 This syncs users passwords from the on-premises AD to the cloud (O365). 这会将用户密码从本地AD同步到云(O365)。 This worked fine and users can log into Office 365 ( https://login.microsoftonline.com ) with their domain password. 这可以正常工作,用户可以使用其域密码登录Office 365( https://login.microsoftonline.com )。

We are now moving to a 3rd party Identity Provider for SSO. 我们现在将移至SSO的第三方身份提供者。 This SSO provider is not ADFS. 此SSO提供程序不是ADFS。 Per Microsoft's documentation, I am trying to set the single sign on method to "Do Not Configure" but it's greyed out now. 根据Microsoft的文档,我试图将单点登录方法设置为“不配置”,但现在显示为灰色。 How do I disable password synchronization in favor for federated SSO with a 3rd party Identity Provider? 如何禁用密码同步,以支持具有第三方身份提供者的联合SSO?

在此处输入图片说明

Steps: 脚步:

You could try disabling the Password Synchronization via PowerShell: 您可以尝试通过PowerShell禁用密码同步:

Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $Local -TargetConnector $Remote -Enable $False

Run this script: (just replace the connector names) 运行此脚本:(只需替换连接器名称)

$adConnector  = "fabrikam.com"
$aadConnector = "aaddocteam.onmicrosoft.com - AAD"

Import-Module adsync
$c = Get-ADSyncConnector -Name $adConnector
$p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter "Microsoft.Synchronize.ForceFullPasswordSync", String, ConnectorGlobal, $null, $null, $null
$p.Value = 1
$c.GlobalParameters.Remove($p.Name)
$c.GlobalParameters.Add($p)
$c = Add-ADSyncConnector -Connector $c     
Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $false

What do the above steps do exactly: 上面的步骤到底做了什么?

The command is from the force password sync script as shown here ( http://social.technet.microsoft.com/wiki/contents/articles/28433.how-to-use-powershell-to-trigger-a-full-password-sync-in-azure-ad-sync.aspx ) which triggers the full password sync by switching it Off and then to On. 该命令来自强制密码同步脚本,如此处所示( http://social.technet.microsoft.com/wiki/contents/articles/28433.how-to-use-powershell-to-trigger-a-full-password (-sync-in-azure-ad-sync.aspx ),通过将其关闭然后再打开来触发完整的密码同步。 The one above is just the command for "Off" which is indicated by the switch (-Enable $false) 上面的一个只是“ Off”的命令,它由开关指示(-Enable $ false)

Results: 结果:

You would notice that the Password Synchronization service would be disabled even though it may/may not be indicated through the GUI (Azure AD Connect wizard) but you can definitely trust the output of a few PowerShell commandlets which would indicate the status of the password sync given in the Verification Steps below. 您会注意到,密码同步服务将被禁用,即使它可能/可能不会通过GUI(Azure AD Connect向导)指示出来,但是您绝对可以信任几个PowerShell命令行开关的输出,这些命令指示密码同步的状态。在下面的验证步骤中给出。

Verification: 验证:

You could verify if the password synchronization is completely switched off by: 您可以通过以下方式验证密码同步是否已完全关闭:

1.Checking the value of "PasswordSynchronizationEnabled" in the output of Get-MsolCompanyInformation command: 1.在Get-MsolCompanyInformation命令的输出中检查“ PasswordSynchronizationEnabled”的值:

Get-MsolCompanyInformation

2.Changing a User's password and then monitoring whether the "Password Sync" is triggered or not by monitoring the Events 656 and 657 in the Application event log of the Synchronization Server. 2.更改用户的密码,然后通过监视同步服务器的应用程序事件日志中的事件656和657 ,监视是否触发了“密码同步”。

3.You could try the "Heartbeat Script" as shown here: https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnectsync-implement-password-synchronization to get the status of the Password Synchronization. 3.您可以尝试如下所示的“心跳脚本”: https : //docs.microsoft.com/zh-cn/azure/active-directory/connect/active-directory-aadconnectsync-implement-password-synchronization以获取密码同步的状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM