Azure Password Writeback with DirSync

Many enterprises deployed Dirsync while integrating with Azure AD to sync the AD users, however, with more and more services moving to cloud and giving SSO solutions with Azure, it becomes a necessity to authenticate cloud applications with on-premise AD password to give the best login experience to the users. There are a couple of options to achieve this.

  1. Synchronize your on-premise AD password with Azure AD. This is a good option however, many enterprises may  not want to opt for it due to various security policies.
  2. Enable Password Writeback to on-premise AD. This is simple to achieve with latest Azure AD Sync tools available from Microsoft however if you have deployed dirsync and cannot upgrade it to the latest tools due to any reason, it becomes tricky.

Microsoft may not have documented it anywhere but here is how this can be achieved in few simple steps:

  1. Enable SSPR(Self Service Password Reset) in Azure (Follow MS documentation on how to do this)
  2. Run Enable-OnlinePasswordWriteback in powershell on your Dirsync server. Follow MS documentation on how to run this
  3. If you have enabled group based SSPR, please ensure the required users are added to it
  4. Assign appropriate license to the users in Azure portal to allow them to reset their passwords
  5. In your on-premise AD, give MSOL_xxxxxxxxxxx AD account delegation to reset user passwords
  6. Register your test user for SSPR and test password reset

Just in case your password reset delegation reverts after sometime, please ensure its excluded from synchronization under Dirsync console.


Posted on December 9, 2015, in Azure, DirSync, Password, Writeback and tagged , , , . Bookmark the permalink. 1 Comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: