{"id":1353,"date":"2020-04-08T03:10:00","date_gmt":"2020-04-08T01:10:00","guid":{"rendered":"http:\/\/itsimple.info\/?p=1353"},"modified":"2020-04-08T03:34:21","modified_gmt":"2020-04-08T01:34:21","slug":"outlook-not-connecting-to-exchange-server-and-password-window-keep-popping","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=1353","title":{"rendered":"Outlook not connecting to exchange server and password window keep popping"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>I had a weird case of organization suffering from outlook that couldn&#8217;t connect to the exchange, the security window was popping all the time regardless the credential input\u00a0 . in order to check outlook connectivity i used Microsoft Connectivity analyzer :\u00a0<a href=\"https:\/\/testconnectivity.microsoft.com\/\">https:\/\/testconnectivity.microsoft.com\/<\/a><\/p>\n<p>The test pass without any hard issue, clients from outside the organization were connecting without any problem and fast ! But from the domain network itself workstation couldn&#8217;t connect with outlook , OWA was working fine any were , so I ran:<\/p>\n<pre><span style=\"color: #0000ff;\"><span class=\"crayon-v\">Get<\/span><span class=\"crayon-o\">-<\/span><span class=\"crayon-v\">ClientAccessServer<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-v\">Test<\/span><span class=\"crayon-o\">-<\/span><span class=\"crayon-v\">OutlookWebServices<\/span> <span class=\"crayon-o\">-<\/span><span class=\"crayon-e\">Identity <\/span><span class=\"crayon-v\">your@email.com<\/span> <span class=\"crayon-o\">-<\/span><span class=\"crayon-e\">MailboxCredential<\/span> <span class=\"crayon-sy\">(<\/span><span class=\"crayon-v\">Get<\/span><span class=\"crayon-o\">-<\/span><span class=\"crayon-v\">Credential<\/span><span class=\"crayon-sy\">) | fl\r\n<\/span><\/span><\/pre>\n<p>To check outlook and I got this weird error complaining about certificate missmatch issue :<\/p>\n<p><span style=\"color: #ff0000;\">Result : Failure<\/span><br \/>\n<span style=\"color: #ff0000;\"> Latency : 1<\/span><br \/>\n<span style=\"color: #ff0000;\"> Error : System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL\/TLS secure channel. \u2014&gt;<\/span><br \/>\n<span style=\"color: #ff0000;\"> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.<\/span><\/p>\n<p>There were no eventID in any log regarding any thing about certificate issue . At that point I figured that the authentication mechanism wasn&#8217;t working and it hand nothing to do with certificate or exchange server health . Now outlook can connect with NTLM or Kerberos to the exchange server, so I forced the workstation connecting with NTLM only -&gt; that didn&#8217;t work ! but when I set the Kerberos as default the outlook connect in a flash, this are the registry setting for outlook 2016 :<\/p>\n<ol start=\"0\">\n<li>Kerberos\/NTLM Password Authentication<br \/>\n<table class=\"table \" bgcolor=\"#00FFFF\">\n<tbody>\n<tr>\n<td class=\"strong\">Registry\u00a0Hive<\/td>\n<td>HKEY_CURRENT_USER<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Registry\u00a0Path<\/td>\n<td>software\\policies\\microsoft\\office\\16.0\\outlook\\security<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Name<\/td>\n<td>authenticationservice<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Type<\/td>\n<td>REG_DWORD<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value<\/td>\n<td>9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Kerberos Password Authentication<br \/>\n<table class=\"table \" bgcolor=\"#00FFFF\">\n<tbody>\n<tr>\n<td class=\"strong\">Registry\u00a0Hive<\/td>\n<td>HKEY_CURRENT_USER<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Registry\u00a0Path<\/td>\n<td>software\\policies\\microsoft\\office\\16.0\\outlook\\security<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Name<\/td>\n<td>authenticationservice<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Type<\/td>\n<td>REG_DWORD<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value<\/td>\n<td>16<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>NTLM Password Authentication<br \/>\n<table class=\"table \" bgcolor=\"#00FFFF\">\n<tbody>\n<tr>\n<td class=\"strong\">Registry\u00a0Hive<\/td>\n<td>HKEY_CURRENT_USER<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Registry\u00a0Path<\/td>\n<td>software\\policies\\microsoft\\office\\16.0\\outlook\\security<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Name<\/td>\n<td>authenticationservice<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Type<\/td>\n<td>REG_DWORD<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value<\/td>\n<td>10<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>Insert a smart card<br \/>\n<table class=\"table \" bgcolor=\"#00FFFF\">\n<tbody>\n<tr>\n<td class=\"strong\">Registry\u00a0Hive<\/td>\n<td>HKEY_CURRENT_USER<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Registry\u00a0Path<\/td>\n<td>software\\policies\\microsoft\\office\\16.0\\outlook\\security<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Name<\/td>\n<td>authenticationservice<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value\u00a0Type<\/td>\n<td>REG_DWORD<\/td>\n<\/tr>\n<tr>\n<td class=\"strong\">Value<\/td>\n<td>2147545088<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<p>Now to find why NTLM didn&#8217;t work ??? Turn out there was a setting in the default domain policy (GPO) denying all NTLM connection on all the computers in the domain . and it was both on Domain default policy and in the local policy :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1357\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied-300x192.png\" alt=\"\" width=\"650\" height=\"416\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied-300x192.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied-768x492.png 768w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied-1024x656.png 1024w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied.png 1056w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>Once I set this options to &#8221; allow all&#8221; every think start working again !<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1358\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied.2PNG-300x141.png\" alt=\"\" width=\"668\" height=\"314\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied.2PNG-300x141.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied.2PNG-768x361.png 768w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied.2PNG-1024x481.png 1024w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/04\/NTLM-Denied.2PNG.png 1376w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/p>\n<p>then run :<\/p>\n<p>gpupdate \/force<\/p>\n<p>Sync it to all the DC&#8217;s<\/p>\n<pre>repadmin \/syncall<\/pre>\n<p>&nbsp;<\/p>\n<hr \/>\n<h3>Good Luck<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; I had a weird case of organization suffering from outlook that couldn&#8217;t connect to the exchange, the security window was popping all the time regardless the credential input\u00a0 . in order to check outlook connectivity i used Microsoft Connectivity analyzer :\u00a0https:\/\/testconnectivity.microsoft.com\/ The test pass without any hard issue, clients from outside the organization were [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8,9,21,4,12,1,14,15],"tags":[],"class_list":["post-1353","post","type-post","status-publish","format-standard","hentry","category-microsoft-exchange-2010","category-microsoft-exchange-2013","category-microsoft-exchange-2016","category-operating-systems","category-tech","category-tutorials","category-uncategorized","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1353"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1353\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}