You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tutorial: Enable Azure Active Directory self-service password reset writeback to an on-premises environment
20
20
21
-
With Azure Active Directory (Azure AD) self-service password reset (SSPR), users can update their password or unlock their account using a web browser. 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.
21
+
With Azure Active Directory (Azure AD) self-service password reset (SSPR), users can update their password or unlock their account using a web browser. 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.
22
+
23
+
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.
22
24
23
25
In this tutorial, you learn how to:
24
26
@@ -42,7 +44,9 @@ To complete this tutorial, you need the following resources and privileges:
42
44
43
45
## Configure account permissions for Azure AD Connect
44
46
45
-
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 2012 or later computer that's joined to the on-premises AD DS domain. The account specified in the Azure AD Connect utility must have the following items set to correctly work with SSPR writeback. 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 permission to is listed under **Synchronized Directories**.
47
+
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 2012 or later computer that's joined to the on-premises AD DS domain.
48
+
49
+
To correctly work with SSPR writeback, the account specified in Azure AD Connect must have the following 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**.
46
50
47
51
***Reset password**
48
52
***Change password**
@@ -57,40 +61,42 @@ If don't assign these permissions, writeback appears to be configured correctly,
57
61
To set up the appropriate permissions for password writeback to occur, complete the following steps:
58
62
59
63
1. In your on-premises AD DS environment, open **Active Directory Users and Computers** with an account that has the appropriate *domain administrator* permissions.
60
-
2. From the **View** menu, make sure that **Advanced features** are turned on.
61
-
3. In the left panel, right-select the object that represents the root of the domain and select **Properties** > **Security** > **Advanced**.
62
-
4. From the **Permissions** tab, select **Add**.
63
-
5. Pick the account that permissions should be applied to (the account used by Azure AD Connect).
64
-
6. In the **Applies to** drop-down list, select **Descendant User objects**.
65
-
7. Under **Permissions**, select the boxes for the following options:
64
+
1. From the **View** menu, make sure that **Advanced features** are turned on.
65
+
1. In the left panel, right-select the object that represents the root of the domain and select **Properties** > **Security** > **Advanced**.
66
+
1. From the **Permissions** tab, select **Add**.
67
+
1. Pick the account that permissions should be applied to (the account used by Azure AD Connect).
68
+
1. In the **Applies to** drop-down list, select **Descendant User objects**.
69
+
1. Under **Permissions**, select the boxes for the following options:
66
70
***Change password**
67
71
***Reset password**
68
-
8. Under **Properties**, select the boxes for the following options:
72
+
1. Under **Properties**, select the boxes for the following options:
69
73
***Write lockoutTime**
70
74
***Write pwdLastSet**
71
-
9. Select **Apply/OK** to apply the changes and exit any open dialog boxes.
75
+
1. Select **Apply/OK** to apply the changes and exit any open dialog boxes.
72
76
73
77
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.
74
78
75
-
Password policies in the on-premises AD DS environment may prevent password resets from being correctly processed. For password writeback to work correctly, 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 `gpedit.msc`. If you update the group policy, wait for the updated policy to replicate, or use the `gpupdate /force` command.
79
+
Password policies in the on-premises AD DS environment may prevent password resets from being correctly processed. For password writeback to work correctly, 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 `gpedit.msc`.
80
+
81
+
If you update the group policy, wait for the updated policy to replicate, or use the `gpupdate /force` command.
76
82
77
83
## Enable password writeback in Azure AD Connect
78
84
79
-
One of the configuration options in Azure AD Connect is for password writeback. When this option is enabled, self-service password reset events cause Azure AD Connect to synchronize the updated credentials back to the on-premises AD DS environment.
85
+
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.
80
86
81
-
To enable self-service password reset writeback, enable the writeback in Azure AD Connect. From your Azure AD Connect server, complete the following steps:
87
+
To enable self-service password reset writeback, first enable the writeback option in Azure AD Connect. From your Azure AD Connect server, complete the following steps:
82
88
83
89
1. Sign in to your Azure AD Connect server and start the **Azure AD Connect** configuration wizard.
84
-
2. On the **Welcome** page, select **Configure**.
85
-
3. On the **Additional tasks** page, select **Customize synchronization options**, and then select **Next**.
86
-
4. On the **Connect to Azure AD** page, enter a global administrator credential for your Azure tenant, and then select **Next**.
87
-
5. On the **Connect directories** and **Domain/OU** filtering pages, select **Next**.
88
-
6. On the **Optional features** page, select the box next to **Password writeback** and select **Next**.
90
+
1. On the **Welcome** page, select **Configure**.
91
+
1. On the **Additional tasks** page, select **Customize synchronization options**, and then select **Next**.
92
+
1. On the **Connect to Azure AD** page, enter a global administrator credential for your Azure tenant, and then select **Next**.
93
+
1. On the **Connect directories** and **Domain/OU** filtering pages, select **Next**.
94
+
1. On the **Optional features** page, select the box next to **Password writeback** and select **Next**.
89
95
90
96

91
97
92
-
7. On the **Ready to configure** page, select **Configure** and wait for the process to finish.
93
-
8. When you see the configuration finish, select **Exit**.
98
+
1. On the **Ready to configure** page, select **Configure** and wait for the process to finish.
99
+
1. When you see the configuration finish, select **Exit**.
94
100
95
101
## Enable password writeback for SSPR
96
102
@@ -99,13 +105,33 @@ With password writeback enabled in Azure AD Connect, now configure Azure AD SSPR
99
105
To enable password writeback in SSPR, complete the following steps:
100
106
101
107
1. Sign in to the [Azure portal](https://portal.azure.com) using a global administrator account.
102
-
2. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
103
-
3. Set the option for **Write back passwords to your on-premises directory?** to *Yes*.
104
-
4. Set the option for **Allow users to unlock accounts without resetting their password?** to *Yes*.
108
+
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
109
+
1. Set the option for **Write back passwords to your on-premises directory?** to *Yes*.
110
+
1. Set the option for **Allow users to unlock accounts without resetting their password?** to *Yes*.
105
111
106
112

107
113
108
-
5. When ready, select **Save**.
114
+
1. When ready, select **Save**.
115
+
116
+
## Clean up resources
117
+
118
+
If you no longer want to use the SSPR writeback functionality you have configured as part of this tutorial, complete the following steps:
119
+
120
+
1. Sign in to the [Azure portal](https://portal.azure.com).
121
+
1. Search for and select **Azure Active Directory**, select **Password reset**, then choose **On-premises integration**.
122
+
1. Set the option for **Write back passwords to your on-premises directory?** to *No*.
123
+
1. Set the option for **Allow users to unlock accounts without resetting their password?** to *No*.
124
+
125
+
If you no longer want to use any password functionality, complete the following steps from your Azure AD Connect server:
126
+
127
+
1. Sign in to your Azure AD Connect server and start the **Azure AD Connect** configuration wizard.
128
+
1. On the **Welcome** page, select **Configure**.
129
+
1. On the **Additional tasks** page, select **Customize synchronization options**, and then select **Next**.
130
+
1. On the **Connect to Azure AD** page, enter a global administrator credential for your Azure tenant, and then select **Next**.
131
+
1. On the **Connect directories** and **Domain/OU** filtering pages, select **Next**.
132
+
1. On the **Optional features** page, deselect the box next to **Password writeback** and select **Next**.
133
+
1. On the **Ready to configure** page, select **Configure** and wait for the process to finish.
134
+
1. When you see the configuration finish, select **Exit**.
0 commit comments