"Unexpected login failure" when you start the Yammer Directory Sync utility

PROBLEM
When you start the Yammer Directory Sync utility, you experience the following symptoms:
  • The following error in the Yammer Settings page of the Yammer Directory Sync utility: 
     
    Unexpected login failure
     
  • The following error in the in the ui.log and service.log files: 
     
    System.Net.WebException: The remote server returned an error: (411) Length Required

    Note To view the log files, see the following folder: C:\ProgramData\Yammer\DirSync
SOLUTION
Set the Yammer Directory Sync 3.0 service to use https://dysnc.yammer.com instead of https://yammer.com for authentication. To do this, follow these steps:
  1. Close the Yammer Directory Sync utility.
  2. Verify that the Yammer.DirSync.exe process isn't running in Task Manager. To do this, follow these steps: 
    1. To start Task Manager, right-click the taskbar, and then click Start Task Manager.
    2. If the Yammer.DirSync.exe process isn't listed, no action is needed. If the process is listed, right-click Yammer.DirSync.exe, and then click End task.
  3. Stop the Yammer Directory Sync 3.0 service in the Services console. To do this, follow these steps:
    1. To start the Services console, click Start, and then type Run. In the Open field type Services.msc, and then click OK.
    2. Right-click Yammer Directory Sync 3.0, and then click Stop.
  4. Update the Yammer.DirSync.Service.exe.config file. To do this, follow these steps:
    1. Open the Yammer.DirSync.Service.exe.config file.
       
      Note Find the config file in the following location: C:\Program Files (x86)\Yammer\Directory Sync
    2. Locate the </configuration> tag at the end of the file.
    3. Add the following statement directly before the </configuration> tag:
      <appSettings><add key="APP_PATH" value="https://dsync.yammer.com"/></appSettings>
      Note If you already have an <appSettings> section defined in the config file, add only the following line to the <appSetting> section: 
      <add key="APP_PATH" value="https://dsync.yammer.com"/>
      The updated part of the config file will resemble the following: 

      Example config file with authentication updates
  5. Start the Yammer Directory Sync 3.0 service in the Services console. To do this, right-click Yammer Directory Sync 3.0, and then click Start.
  6. Start the Yammer Directory Sync utility.
MORE INFORMATION
For more information, see the following Microsoft websites: 
Still need help? Go to Microsoft Community.
Properties

Article ID: 3154007 - Last Review: 12/29/2016 11:39:00 - Revision: 4.0

Yammer

  • kbgraphxlink kbgraphxlinkcritical KB3154007
Feedback