Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

How to Enable Azure AD Password Writeback

2/20/2023

0 Comments

 
How to Enable Azure AD Password Writeback

With Azure Active Directory (Azure AD) self-service password reset (SSPR), users can update their password or unlock their account using a web browser. We recommend this video on How to enable and configure SSPR in Azure AD. In a hybrid environment where Azure AD is connected to an on-premises Active Directory Domain Services (AD DS) environment, this scenario can cause passwords to be different between the two directories.

Password writeback can be used to synchronize password changes in Azure AD back to your on-premises AD DS environment. Azure AD Connect provides a secure mechanism to send these password changes back to an existing on-premises directory from Azure AD.





Prerequisites

To complete this task, you need the following resources and privileges:

  • A working Azure AD tenant with at least an Azure AD Premium P1 or trial license enabled.
    • If needed, create one for free.
    • For more information, see Licensing requirements for Azure AD SSPR.
  • An account with Hybrid Identity Administrator.
  • Azure AD configured for self-service password reset.
    • If needed, complete the previous tutorial to enable Azure AD SSPR.
  • An existing on-premises AD DS environment configured with a current version of Azure AD Connect.
    • If needed, configure Azure AD Connect using the Express or Custom settings.
    • To use password writeback, domain controllers can run any supported version of Windows Server.

1. Configure account permissions for Azure AD Connect


Azure AD Connect lets you synchronize users, groups, and credential between an on-premises AD DS environment and Azure AD. You typically install Azure AD Connect on a Windows Server 2016 or later computer that's joined to the on-premises AD DS domain.

To correctly work with SSPR writeback, the account specified in Azure AD Connect must have the appropriate permissions and options set. If you're not sure which account is currently in use, open Azure AD Connect and select the View current configuration option. The account that you need to add permissions to is listed under Synchronized Directories. The following permissions and options must be set on the account:

  • Reset password
  • Write permissions on lockoutTime
  • Write permissions on pwdLastSet
  • Extended rights for "Unexpire Password" on the root object of each domain in that forest, if not already set.



If you don't assign these permissions, writeback may appear to be configured correctly, but users encounter errors when they manage their on-premises passwords from the cloud. When setting "Unexpire Password" permissions in Active Directory, it must be applied to This object and all descendant objects, This object only, or All descendant objects, or the "Unexpire Password" permission can't be displayed.

To set up the appropriate permissions for password writeback to occur, complete the following steps:

  1. In your on-premises AD DS environment, open Active Directory Users and Computers with an account that has the appropriate domain administrator permissions.

  2. From the View menu, make sure that Advanced features are turned on.

  3. In the left panel, right-select the object that represents the root of the domain and select Properties > Security > Advanced.

  4. From the Permissions tab, select Add.

  5. For Principal, select the account that permissions should be applied to (the account used by Azure AD Connect).

  6. In the Applies to drop-down list, select Descendant User objects.

  7. Under Permissions, select the box for the following option:

    • Reset password
  8. Under Properties, select the boxes for the following options. Scroll through the list to find these options, which may already be set by default:

    • Write lockoutTime
    • Write pwdLastSet

    Set the appropriate permissions in Active Users and Computers for the account that is used by Azure AD Connect

  9. When ready, select Apply / OK to apply the changes.

  10. From the Permissions tab, select Add.

  11. For Principal, select the account that permissions should be applied to (the account used by Azure AD Connect).

  12. In the Applies to drop-down list, select This object and all descendant objects

  13. Under Permissions, select the box for the following option:

    • Unexpire Password
  14. When ready, select Apply / OK to apply the changes and exit any open dialog boxes.

When you update permissions, it might take up to an hour or more for these permissions to replicate to all the objects in your directory.

Password policies in the on-premises AD DS environment may prevent password resets from being correctly processed. For password writeback to work most efficiently, the group policy for Minimum password age must be set to 0. This setting can be found under Computer Configuration > Policies > Windows Settings > Security Settings > Account Policies within gpmc.msc.

If you update the group policy, wait for the updated policy to replicate, or use the gpupdate /force command.






2. Enable password writeback in Azure AD Connect

 

One of the configuration options in Azure AD Connect is for password writeback. When this option is enabled, password change events cause Azure AD Connect to synchronize the updated credentials back to the on-premises AD DS environment.

To enable SSPR writeback, first enable the writeback option in Azure AD Connect. From your Azure AD Connect server, complete the following steps:

  1. Sign in to your Azure AD Connect server and start the Azure AD Connect configuration wizard.

  2. On the Welcome page, select Configure.

  3. On the Additional tasks page, select Customize synchronization options, and then select Next.

  4. On the Connect to Azure AD page, enter a global administrator credential for your Azure tenant, and then select Next.

  5. On the Connect directories and Domain/OU filtering pages, select Next.

  6. On the Optional features page, select the box next to Password writeback and select Next.

    Configure Azure AD Connect for password writeback

  7. On the Directory extensions page, select Next.

  8. On the Ready to configure page, select Configure and wait for the process to finish.

  9. When you see the configuration finish, select Exit.






3. Enable password writeback for SSPR

 With password writeback enabled in Azure AD Connect, now configure Azure AD SSPR for writeback. SSPR can be configured to writeback through Azure AD Connect sync agents and Azure AD Connect provisioning agents (cloud sync). When you enable SSPR to use password writeback, users who change or reset their password have that updated password synchronized back to the on-premises AD DS environment as well.

To enable password writeback in SSPR, complete the following steps:

  1. Sign in to the Azure portal using a Hybrid Identity Administrator account.

  2. Search for and select Azure Active Directory, select Password reset, then choose On-premises integration.

  3. Check the option for Write back passwords to your on-premises directory .

  4. (optional) If Azure AD Connect provisioning agents are detected, you can additionally check the option for Write back passwords with Azure AD Connect cloud sync.

  5. Check the option for Allow users to unlock accounts without resetting their password to Yes.

  6. If there is an error, it might relate to the insufficent privilege or license AAD P1 or P2. 

  7. When ready, select Save.




Videos

 









References

  • Enable Azure Active Directory self-service password reset writeback to an on-premises environment
  • How does self-service password reset writeback work in Azure Active Directory?










via Blogger http://blog.51sec.org/2023/02/how-to-enable-azure-password-writeback.html
February 20, 2023 at 03:35PM Cloud
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org