Setting up Azure AD Connect, 2-way directory synchronization, password write-back, online-password reset


For this demo, I will create a new Azure Active Directory (AAD) called Vertitech3AAD and a new on-premise Active Directory called Vertitech3OP.local (NetBIOS name Vertitech3OP) in a new 2012 R2 AD forest.

Create a new Azure Active Directory:

As of 24 February 2016, creating a directory is available only in the classic portal (https://manage.windowsazure.com). If you try to do it in the new portal (https://portal.azure.com):

AzureAD01

You’ll simply be redirected to the classic portal:
AzureAD02

I created Vertitech3AAD Azure Active directory in Azure, and created an on-premise AD domain called Vertitech3OP.local in new 2012 R2 forest:

AzureAD03

I can see the new AAD (Azure Active Directory) domain:

AzureAD04

Create new AAD Global Admin user:

We create a new AAD user for AD Connect because we need a Global Admin that has rights to a single AAD. In the new AAD I create a new user with Global Admin permissions:

AzureAD05

The new AAD user is created:

AzureAD06

Change the temporary user password:

Next, I must change the new user password. I browse to https://manage.windowsazure.com, log off and login again using the new user credentials and temp password:

AzureAD07

I’m then prompted to change my password:

AzureAD08

Download and install AD Connect on an on-premise machine:

AD Connect can be downloaded from the Azure AD page or this link.

AzureAD09

Install AD Connect

AzureAD10

AzureAD11

Using Express Settings:

AzureAD12

Enter the AAD Global Admin user name and password:

AzureAD13

And local (on-premise) AD credentials – this account needs to be member of the Enterprise Admins group:

AzureAD15

The message/recommendation about custom domain verification can be safely ignored.

AzureAD16

AD Connect uses SQL Express – but can be configured to use other on-premise full deployment of SQL:

AzureAD17

And we’re all done:

AzureAD18

I recorded the machine services in an XML file before installing AD Connect using the Powershell command:

Get-Service | Export-Clixml .\Services1.xml

After installing AD Connect, I ran this small script to identify new services added:

$Services1 = Import-Clixml .\Services1.xml
$NewServices = @()
(Import-Clixml .\Services2.xml) | % {
     if ($_.Name -notin $Services1.Name) {
         $NewServices += $_
     }
}
$NewServices | sort name | select name, displayname,status | FT -a

We can see 5 new services. Some are running under LocalSystem.

AzureAD20

In Computer Management under Local Users and Groups, we can see a number of new local groups that have been created during AD Connect installation:

AAD06

Only ADSyncAdmins local group has users. It has the local user account (service account for ADSync service) and the domain account that the AD Connect installation ran under,

And in Azure we can see a new Synchronization service account:

AzureAD22

Also, note that Directory integration is now Activated:

AzureAD34

To view synchronization activity, run Synchronization Service Manager (c:\program files\Microsoft Azure AD Sync\UIShell\miisclient.exe)

AAD07

User objects in the on-premise AD need to have inheritance enabled for AD Connect to work and synchronize these objects to Azure AD.

Enable Password Write-back:

We can also see Azure AD Connect icon on the desktop (shortcut to “C:\Program Files\Microsoft Azure Active Directory Connect\AzureADConnect.exe”)

AzureAD23

Which shows the following options:

AzureAD24

First option is to View Current Configuration:

AzureAD25

Note the default settings above. To change synchronization settings, click Customize Synchronization Options:

AzureAD26

Next we enter our Azure AD Global Admin user credentials:

AzureAD27

And our local (on-premise) AD admin credentials:

AzureAD28

We can select to synchronize all domains and OUs or specific domains and OUs:

AzureAD29

As well as optional features:

AzureAD30

I check the box to enable Password Write-back, and click Install to reconfigure the synchronization process:

AzureAD31

AzureAD32


To test synchronization, I create a local AD user:

AzureAD33

By default AD Connect synchronizes every 30 minutes. To force a manual synchronization I use this Powershell cmdlet on the AD Connect machine:

Start-ADSyncSyncCycle -PolicyType Delta

Now I can see the user in Azure:

AzureAD35

Configure Password Reset Policy:

In the Azure classic portal at https://manage.windowsazure.com, browse to your directory/configure page:

Pwdreset03

Click the Yes button for ‘Users Enabled for Password Reset’.

Don’t forget to click the Save icon on the bottom center to save and apply your new settings.

Accept the remaining default settings or customize them as needed under the ‘user password reset policy’ section.

I changed the default setting ‘Require Users to Register When Signing in’ from Yes to No. This feature will require users to enter Mobile Phone OR Alternate Email Address as configured in this section. You may want to warn users before hand to expect that requirement, or/and tackle any internal organization/privacy issues related to users’ alternate emails and mobile phone numbers.

One last note here; Password Reset Policy is a directory-wide setting. It will apply to all users. As of 7 March 2016, it cannot be configured to apply to a certain user/group/OU.

Finally, users can change their passwords online using the standard Azure password reset pages/links such as https://account.activedirectory.windowsazure.com/ChangePassword.aspx?BrandContextID=O365&ruO365=

Pwdreset01

which can be reached from the settings/password link under https://portal.office.com/account/ for example:

Pwdreset02

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s