Azure and Office 365 Integration


We have recently installed a Windows Server 2012 R2 Essentials server. We installed all updates available. Setup the Azure Active Directory and Office 365 integration. This worked to start with but now we cannot sync passwords.I have tried the following:

http://blogs.technet.com/b/sbs/archive/2015/05/29/windows-server-2012-essentials-r2-essentials-may-fail-to-integrate-with-microsoft-office-365.aspx

This has not worked.

Can anybody help?

We are also getting the following in the event logs.

Log Name:      Application
Source:        PCNSSVC
Date:          13/07/2015 15:12:30
Event ID:      6036
Task Category: (4)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      MWPSERVER.MWPolymers.local
Description:
Password Change Notification Service received an RPC exception querying the status of the target.

The password change notification target could not be contacted.

User Action:
The target server may not be running. Verify that the target server is running.

Additional Details:

 
Thread ID: 4816
Target: ESSENTIALS_PWD_SYNC_MWPSERVER
0x000006D9 - There are no more endpoints available from the endpoint mapper.
 

ProcessID is 4568
System Time is: 7/13/2015 14:12:30:703
Generating component is 2
Status is 1753 - There are no more endpoints available from the endpoint mapper.
Detection location is 501
Flags is 0
NumberOfParameters is 4
Unicode string: ncacn_ip_tcp
Unicode string: MWPServer.MWPolymers.local
Long val: -647262927
Long val: 382312662


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="PCNSSVC" />
    <EventID Qualifiers="49152">6036</EventID>
    <Level>2</Level>
    <Task>4</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-13T14:12:30.000000000Z" />
    <EventRecordID>113970</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MWPSERVER.MWPolymers.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>4816</Data>
    <Data>ESSENTIALS_PWD_SYNC_MWPSERVER</Data>
    <Data>0x000006D9</Data>
    <Data>There are no more endpoints available from the endpoint mapper.
</Data>
    <Data>ProcessID is 4568
System Time is: 7/13/2015 14:12:30:703
Generating component is 2
Status is 1753 - There are no more endpoints available from the endpoint mapper.
Detection location is 501
Flags is 0
NumberOfParameters is 4
Unicode string: ncacn_ip_tcp
Unicode string: MWPServer.MWPolymers.local
Long val: -647262927
Long val: 382312662

</Data>
    <Data>

The password change notification target could not be contacted.

User Action:
The target server may not be running. Verify that the target server is running.

Additional Details:

</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        Application Error
Date:          13/07/2015 15:12:15
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      MWPSERVER.MWPolymers.local
Description:
Faulting application name: SharedServiceHost.exe, version: 6.3.9600.16384, time stamp: 0x5215ca62
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
Exception code: 0xe0434352
Fault offset: 0x0000000000008b9c
Faulting process id: 0x2570
Faulting application start time: 0x01d0bd75db7f1b30
Faulting application path: C:\Windows\System32\Essentials\SharedServiceHost.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 296d08e9-2969-11e5-80d5-00155d010d00
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-13T14:12:15.000000000Z" />
    <EventRecordID>113968</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MWPSERVER.MWPolymers.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>SharedServiceHost.exe</Data>
    <Data>6.3.9600.16384</Data>
    <Data>5215ca62</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>6.3.9600.17415</Data>
    <Data>54505737</Data>
    <Data>e0434352</Data>
    <Data>0000000000008b9c</Data>
    <Data>2570</Data>
    <Data>01d0bd75db7f1b30</Data>
    <Data>C:\Windows\System32\Essentials\SharedServiceHost.exe</Data>
    <Data>C:\Windows\system32\KERNELBASE.dll</Data>
    <Data>296d08e9-2969-11e5-80d5-00155d010d00</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

Log Name:      Application
Source:        .NET Runtime
Date:          13/07/2015 15:12:15
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      MWPSERVER.MWPolymers.local
Description:
Application: SharedServiceHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Stack:
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.PropertyValueCollection.PopulateList()
   at System.DirectoryServices.PropertyValueCollection..ctor(System.DirectoryServices.DirectoryEntry, System.String)
   at System.DirectoryServices.PropertyCollection.get_Item(System.String)
   at Microsoft.WindowsServerSolutions.MailService.MailServiceADUtils.get_DomainName()
   at Microsoft.WindowsServerSolutions.MailService.ActiveDirectoryHelper.SetLocalUserPrincipleName(System.String, System.String)
   at Microsoft.WindowsServerSolutions.O365Integration.UpdateO365IntegrationDataTask.CleanUpMappingData(Microsoft.WindowsServerSolutions.O365Integration.O365User[])
   at Microsoft.WindowsServerSolutions.O365Integration.UpdateO365IntegrationDataTask.Run()
   at Microsoft.WindowsServerSolutions.O365Integration.BackgroundTask.TimerCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-13T14:12:15.000000000Z" />
    <EventRecordID>113967</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MWPSERVER.MWPolymers.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: SharedServiceHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Stack:
   at System.DirectoryServices.DirectoryEntry.Bind(Boolean)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_AdsObject()
   at System.DirectoryServices.PropertyValueCollection.PopulateList()
   at System.DirectoryServices.PropertyValueCollection..ctor(System.DirectoryServices.DirectoryEntry, System.String)
   at System.DirectoryServices.PropertyCollection.get_Item(System.String)
   at Microsoft.WindowsServerSolutions.MailService.MailServiceADUtils.get_DomainName()
   at Microsoft.WindowsServerSolutions.MailService.ActiveDirectoryHelper.SetLocalUserPrincipleName(System.String, System.String)
   at Microsoft.WindowsServerSolutions.O365Integration.UpdateO365IntegrationDataTask.CleanUpMappingData(Microsoft.WindowsServerSolutions.O365Integration.O365User[])
   at Microsoft.WindowsServerSolutions.O365Integration.UpdateO365IntegrationDataTask.Run()
   at Microsoft.WindowsServerSolutions.O365Integration.BackgroundTask.TimerCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()
</Data>
  </EventData>
</Event>

July 13th, 2015 3:40pm

Hi Tim,

Based on the error description, before going further, please make sure that the on-premise server is turned on, or the server can be reached for password syncing.

Regarding implementing password synchronization, the following articles can be referred to for more information.

Implement Password Synchronization

https://msdn.microsoft.com/en-us/library/azure/dn246918.aspx

New Azure Active Directory Sync tool with Password Sync is now available

http://blogs.technet.com/b/educloud/archive/2013/06/03/new-azure-active-directory-sync-tool-with-password-sync-is-now-available.aspx

In addition, regarding this issue, in order to get more and better help, we can also ask for suggestions in the following Azure AD forum.

Azure Active Directory

https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=WindowsAzureAD

Best regards,
Frank Shen

Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 11:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics