Categories: Microsoft

Exchange RPC over HTTP problem with TMG

&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2525 " id&equals;"quads-ad2525" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<p><strong>Issue&colon;<&sol;strong><&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2530 " id&equals;"quads-ad2530" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2526 " id&equals;"quads-ad2526" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2531 " id&equals;"quads-ad2531" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;&NewLine;<p>When you try to setup your Outlook with Exchange account&comma; you get the below issue&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Note&colon;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<ul class&equals;"wp-block-list"><li>In this scenario I&&num;8217&semi;m using windows signed certificate for exchange but I have the CA installed on Client side&period;<&sol;li><li>Client is not joined to the domain&period;<&sol;li><li>Client is not on VPN&period;<&sol;li><&sol;ul>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Symptoms&colon;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>Outlook 2010&sol;2013 keeps prompting you for credentials even though you entered them correctly several times&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>And when cancelling you receive that &&num;8220&semi;The action couldn&&num;8217&semi;t be completed&period; The connection to Exchange is unavailable&&num;8221&semi;&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh5&period;googleusercontent&period;com&sol;CVptrLE&lowbar;MO7LFMTqicq2hHR3mziK&lowbar;s5Zg-kw1&lowbar;41fifxylHxgPILAxa13epQOSdt7x9tx0&lowbar;MWRbvCzN6KnSIGEL2tamXxyi97Jqf1Ew9XpVQMtLnfHYi&equals;w1175" alt&equals;""&sol;> &NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2528 " id&equals;"quads-ad2528" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine; &NewLine;<&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh6&period;googleusercontent&period;com&sol;bEOFBSt2y7NS0bvmVbWJgiwoLqTB&lowbar;cG0VbiSYBTiDGR5tTWcl1NPiEdvru6GKyZM&lowbar;KZysF&lowbar;4K1slyQBriHg9u8PDr06CIMSSAO0yUYkjhdSTUplR16m0&equals;w874" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>Investigation&colon;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>Let&&num;8217&semi;s test our autodiscover and see what&&num;8217&semi;s wrong&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>I will first go to <a href&equals;"http&colon;&sol;&sol;www&period;google&period;com&sol;url&quest;q&equals;http&percnt;3A&percnt;2F&percnt;2Fwww&period;testexchangeconnectivity&period;com&amp&semi;sa&equals;D&amp&semi;sntz&equals;1&amp&semi;usg&equals;AFQjCNHUqhF-2O-tGbWFeOhmXD2ORMzmhw" target&equals;"&lowbar;blank" rel&equals;"noreferrer noopener">www&period;testexchangeconnectivity&period;com<&sol;a> and test the autodiscover<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh4&period;googleusercontent&period;com&sol;DrK1u&lowbar;-M-9a7hIopa1-2BSPtseLqOIiBMYFE4byxOPsH80z&lowbar;s6WAI0FBnwTk14jvClj54iHmFiIFBIbFnmDIaPUmC-xB-PwOLjpcv3dqCj&lowbar;xdylA&equals;w572" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Now testing Autodiscover have resulted positively&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;PJJYipNi&lowbar;SELSlSyET05ogd1kbNQyFxKzu5ub27rTSzspeTtUWcTIbU&lowbar;H4Cvs&lowbar;2RMpKZkmHJaY3L8KwaNRF4X3wQtee&lowbar;dkuoZfHXE5gTGOXslbhMmq4&equals;w874" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>There&&num;8217&semi;s no need to test RPC over HTTP when using a windows&sol;self-signed certificate as it won&&num;8217&semi;t result positive anyway <&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Next let&&num;8217&semi;s check TMG&&num;8217&semi;s configuration&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;jxBOKFFs1YFSpesg8E4l-XM-kA6qcPp1HG7w2hYMq3RXBuTJ9-D5IoCjmBuggO3JH4qHJLOlWhfejvVPI5n2umV-qr9BeEph4ehFG6lPLo-VuiG248E&equals;w572" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Every rule that involves RPC should be checked in order to make sure that your Publishing configuration is correct&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>RPC Server should be pointing internally to your Exchange server and externally to your mail&period;domain&period;com External IP Address&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh6&period;googleusercontent&period;com&sol;RF0vq5&lowbar;fKQx2U817bceIIRvjdwRu5L2eWDa1kmng3Lav3odieaUhZmrO&lowbar;OtTj57Jvh9zQpKbqQA4FK2RggkLZDaf6tNLWtZfLVSxhESPEN8Su1lSsC8k&equals;w472" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;S4CJF6rjcpT5bMOcS6AsjYYVSNGiBOo0bfN-EQsSoz96x6ki08zO57buPq2u7g1o&lowbar;syy98l8WtzflPvqFJhsdZOUL7kQYgLVxqEHJB5VhdhzVpl9dRA&equals;w472" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Although when you use TMG&&num;8217&semi;s wizard to publish Exchange TMG does everything for you but still you need to check if it&&num;8217&semi;s the right configuration&period;<&sol;strong><&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2529 " id&equals;"quads-ad2529" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>This is my autodiscover rule configuration&&num;8217&semi;s paths and RPC is also included there&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh6&period;googleusercontent&period;com&sol;i70baQFOhLs7Uv-xvLpNxTMPocU&lowbar;ppuX0jHnMKPO5TjUJYmnqHU1NcWXPhl1uAtddsNGIsVHZOC7p4pDlztDYW7oUnDfyg&lowbar;aS1Shn4X4JPSiYkjsKzs&equals;w472" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Testing rule seems to result positive for all the published paths&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh5&period;googleusercontent&period;com&sol;ctZ0kOPy0x-ycqcJbBTzGj8LllzaNji2dfuQevvD2NU9RmPHz4QNeP8oc0tUFvp-fT52XCajIC0y&lowbar;u0thjB5xae1sKGOFkJ7WICG3fEILB9ebu&lowbar;NPA&equals;w472" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Let&&num;8217&semi;s try testing the following link and see if it authenticate&period; The RPCproxy is required for outlook clients to be configured properly<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Outlook client tries to connect to the below link after finding the autodiscover settings<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><a href&equals;"https&colon;&sol;&sol;autodiscover&period;demotesas&period;com&sol;rpc&sol;rpcproxy&period;dll">https&colon;&sol;&sol;autodiscover&period;demotesas&period;com&sol;rpc&sol;rpcproxy&period;dll<&sol;a><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>If you type your credentials&comma; it most likely won&&num;8217&semi;t connect and will keep prompting or will probably say that request is invalid&excl;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Resolution&colon;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>What if we changed the RPC path from autodiscover to mail&period;demotesas&period;com&quest; The authentication method might be the problem in this case as I am using a total different authentication methods for the mail and for autodiscover rules&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh4&period;googleusercontent&period;com&sol;I70Rxu5CyatTNT2E66ZRAHsCt2MqMFYtV9S6ZnvmVSOW&lowbar;vxZUwWfhXwDXQgkXxIJ1RBUSTTTwV0SN2SbnJeDAsYuV5Wmf&lowbar;KctoDIciP0&lowbar;LSkT6qMnJM&equals;w472" alt&equals;""&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Once we publish the rule&comma; we will have to check the result of the following link<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><a href&equals;"https&colon;&sol;&sol;mail&period;demotesas&period;com&sol;rpc&sol;rpcproxy&period;dll">https&colon;&sol;&sol;mail&period;demotesas&period;com&sol;rpc&sol;rpcproxy&period;dll<&sol;a><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>The site will mostly be accessed without any issues&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>Now we can test our Outlook client setup and see if it will go well without any issues&excl;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>The problem was related to the RPCproxy&period;dll was not being set on the right rule and on the appropriate domain&period;<&sol;strong><&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2523 " id&equals;"quads-ad2523" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;&NewLine;<p><strong>It should be on the mail&period;domain&period;com with the same authentication delegation&period;<&sol;strong><&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"https&colon;&sol;&sol;lh4&period;googleusercontent&period;com&sol;WGDKRV8Pw1yFij&lowbar;pBIq080WjTWrdBLbr-l0&lowbar;ihwCkslHQi6RVt3O65T8YMOo4hgtKRgOEjYFiUSdeCaC7tC-XHfSnNxi-EZxe&lowbar;64SIgunNb3jR69Zg&equals;w1175" alt&equals;""&sol;><&sol;figure>&NewLine;<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2524 " id&equals;"quads-ad2524" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;

moh10ly

Recent Posts

Reset passwords for Active Directory Users

Reset and manage your Active Directory users' Passwords Active Directory is one of the most…

3 years ago

Finding Exchange Database hidden mailboxes. ​

Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…

3 years ago

Setting up ADConnect and PTA (Password auth through) servers agents behind proxy

If you're using a Proxy server in your firewall or in your network and have…

3 years ago

Get Report of Active Directory Locked Accounts and Machine they logged in from

Story:I got some clients  that have reported some of their users being locked out and…

3 years ago

Checking and Providing Full and SendAs delegate access on O365 Exchange Online

Delegate Permissions This is a code that I have wrote recently to check if an…

3 years ago

Retrieving attachments from Exchange mailbox using python

Story: I got a request from a client who constantly gets CVs and have to…

4 years ago

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298