The Problem
After our initial roll out we had a number of users reporting Lync 2013 kept prompting them for credentials at random intervals. Our testing found the following facts regarding this situation.
- Lync seemed to be working perfectly minus the prompting for credentials
- The problem would only occur if Outlook had been opened at least once, the prompt is related to Exchange/Outlook integration.
- If "Personal information manager" is set to None, under the personal options menu, the problem goes away.
- The problem is related to authentication with our internal proxy. If proxy is disabled in IE the problem goes away, it re-appears when proxy is re-enabled.
Even thought this didn't affect Lync performance or functionality it was annoying for the user, disabling Outlook integration wasn't an option as presence is one of our key uses for Lync.
The Solution
We tried all number of fixes before we resolved this problem. If anyone tells you Lync 2013 CU1 fixes this problem, tell them to test it again, it doesn't, at least it doesn't when proxy's are involved.
In our circumstance this error was related to Lync hitting an internal proxy server.We tried adding the URL's we found below to the IE proxy exclusion list, but Lync 2013 seems to ignore this list.
Unlike Lync 2010, Lync 2013 doesn't use pass-through authentication, this is related to the use of win http as an authentication conduit. We did also try playing with win http proxy settings via netsh but we had no success. It is said that this problem will be resolved in a future update.
Initially we tried passing our OWA/Exchange related URL's through the proxy without authentication but still the credentials box appeared.
Out come Wireshark and proxy logs and we finally found all the culprit URL's, you can find them listed below.
- All exchange OWA/EWS URLs
- login.microsoftonline.com
- clientconfig.microsoftonline-p.net
We allowed these to transverse our internal proxy without requiring authentication and the problem was solved, no more authorization prompts, no more frustrated users. I added http and https to the Microsoft URL's for good measure.