September 28, 2013

Type your user name and password to connect for retrieving calendar data from Outlook


Issue: Lync is prompting for credential / Lync credential Pop-up. 

Error: Type your user name and password to connect for retrieving calendar data from Outlook.  

Problem Statement:

Sometime you will receive credential prompt however after typing credential prompt will occur continually because Once Lync signs in, it also attempts to retrieve availability data via Exchange Web Services. It does so by leveraging the Autodiscover functionality built into olmapi32.dll's HrGetAutoDiscoverXML function.  

Lync will issue SOAP requests (over HTTPS) to the published Autodiscover (*1) server, who returns the URLs for the Microsoft Exchange Client Access Server(s) that will feed the availability data back to client. 

When Lync attempts to negotiate authentication using your cached credentials (over the Internet), it will fail with a "401.2 Unauthorized" (*2), and subsequently prompt you for authentication. However, if you force NTLM from either the client side or the server side, you can eliminate these additional prompts for credentials. 

Resolution
Case 1:
1. Open Outlook first and then Lync.
Try below if issue persist.
1.     Exit Lync client.
2.     Open Internet explorer > Click on Tools > Internet Options > Advanced.
3.     Scroll down under ‘Security’ you will ‘Enable Integrated Windows Authentication’.
4.     Just de-select the above option.

5.     Click on ‘Apply’ and ‘OK’.
6.     Close IE and Open Lync client. 

You should no longer receive the additional authentication prompt from Lync (to retrieve availability + out-of-office data via Autodiscover / Exchange Web Services. 

You can control the NTLM via registry:
1.     Open Registry. (Start > Run > type ‘regedit’
2.     Registry path :HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
3.     Find Registry Key Name: EnableNegotiate
4.     Data: 0 (Disabled, unchecked in the UI) or 1 (Enabled, checked in the UI); default is Enabled. 
5.     By default you will see option is enabled.
For IIS setting, you refer MS article:
Thank you.

No comments:

Post a Comment

ShareThis