Our setup is a local Active Directory (with a .local domain), and a Office 365 subscription, the local directory DOES NOT sync (for various reasons) with Office 365, so the accounts/passwords could be different between them.
We have also been preparing to sync the directories and had setup a UPN Suffix for our .local domain using the Microsoft page here:
which we considered might have also been a contributing factor.
We tried a bunch of stuff to try to fix the Skype login issues:
- Caches were cleared
- DNS was flushed
- DNS entries were checked
- Temp files were deleted
- Credentials were deleted
- Certificates were deleted
There were two interesting parts in the log files. The first was:
SIP/2.0 401 Unauthorizedafter a SIP REGISTER a
No Certificateerror further down. No other information in the logs was helpful.
This seemed to be a very common issue with many possible fixes popping up over the web.
- https://www.michev.info/Blog/Post/1235/lync-and-mandatory-profiles
- http://ucken.blogspot.com.au/2011/10/lync-loses-connection-every-8min-28sec.html
- https://social.technet.microsoft.com/Forums/lync/en-US/c3c7567a-ffd4-453b-a0d3-e79b06e92f23/client-cant-login
We finally got a break by looking the the "SigninTelemetryLog.XML" file that Skype created, we noticed text like "GetBestManagedCredentialByType" and determined that Skype (for whatever reason) was trying to use the local domain NTLM authentication tokens to authenticate instead of the passwords entered by the user for use in Office 365. Since these two would be different then it would be unable to authenticate properly.
We then enabled the registry key DisableNTCredentials, listed here: Manage two-factor authentication in Skype for Business Server 2015 which let Skype login without issue.
All in all, this was a very time consuming and difficult issue to diagnose. We didn't feel that the authentication process was logged by Skype to sufficiently to precisely determine what issue was. I presume that using a local Lync server we would access to more debugging tools that might have made it easier.