Title: Connection Set-Up Failure
Last modified: October 2, 2019

---

# Connection Set-Up Failure

 *  Resolved [aubreybowman](https://wordpress.org/support/users/aubreybowman/)
 * (@aubreybowman)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/connection-set-up-failure/)
 * Hi, I am having a issue with setting up a connection between my Dynamics 365 
   Integration plug-in and my Dynamics 365 CRM. I have used two different log-ons,
   one with a system admin access level and one that is primarily meant for sales
   and marketing support. Both should have sufficient access. With the support account
   I have created an app password that should allow for any conditional restrictions
   to be resolved. I’m including the error log for both types of sign-ins below 
   this. I’ve been working at this and troubleshooting it for over week and would
   love to get it resolved.
 * [2019-10-01 15:30:34] wpcrm.NOTICE: Purging all caches and storage. [] []
    [2019-
   10-01 15:30:34] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 15:30:34] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   false}} [] [2019-10-01 15:30:35] crmtoolkit.ALERT: Could not retrieve a SOAP 
   response. {“service”:”discovery”,”lastException”:”[object] (Exception(code: 0):
   Authentication Failure. AADSTS53003: Blocked by conditional access. at /home/
   s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/
   src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:30:35] crmtoolkit.CRITICAL:
   Exception during instantiation of the CRM Toolkit. {“exception”:”[object] (Exception(
   code: 0): Authentication Failure. AADSTS53003: Blocked by conditional access.
   at /home/s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-
   crm-toolkit/src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:30:35] wpcrm.
   ERROR: CRM connection attempt failed with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 15:30:35] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 15:31:25] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 15:31:25] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 15:31:25] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:false,”strictFederatedSTS”:
   false}} [] [2019-10-01 15:31:26] crmtoolkit.ALERT: Could not retrieve a SOAP 
   response. {“service”:”discovery”,”lastException”:”[object] (Exception(code: 0):
   Authentication Failure. AADSTS53003: Blocked by conditional access. at /home/
   s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/
   src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:31:26] crmtoolkit.CRITICAL:
   Exception during instantiation of the CRM Toolkit. {“exception”:”[object] (Exception(
   code: 0): Authentication Failure. AADSTS53003: Blocked by conditional access.
   at /home/s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-
   crm-toolkit/src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:31:26] wpcrm.
   ERROR: CRM connection attempt failed with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 15:31:26] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 15:36:18] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 15:36:18] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 15:36:18] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   false}} [] [2019-10-01 15:36:19] crmtoolkit.ALERT: Could not retrieve a SOAP 
   response. {“service”:”discovery”,”lastException”:”[object] (Exception(code: 0):
   Authentication Failure. AADSTS53003: Blocked by conditional access. at /home/
   s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/
   src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:36:19] crmtoolkit.CRITICAL:
   Exception during instantiation of the CRM Toolkit. {“exception”:”[object] (Exception(
   code: 0): Authentication Failure. AADSTS53003: Blocked by conditional access.
   at /home/s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-
   crm-toolkit/src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:36:19] wpcrm.
   ERROR: CRM connection attempt failed with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 15:36:19] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 15:58:24] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 15:58:24] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 15:58:24] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   false}} [] [2019-10-01 15:58:25] crmtoolkit.ALERT: Could not retrieve a SOAP 
   response. {“service”:”discovery”,”lastException”:”[object] (Exception(code: 0):
   Authentication Failure. AADSTS53003: Blocked by conditional access. at /home/
   s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/
   src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:58:25] crmtoolkit.CRITICAL:
   Exception during instantiation of the CRM Toolkit. {“exception”:”[object] (Exception(
   code: 0): Authentication Failure. AADSTS53003: Blocked by conditional access.
   at /home/s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-
   crm-toolkit/src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 15:58:25] wpcrm.
   ERROR: CRM connection attempt failed with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 15:58:25] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 16:30:51] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 16:30:51] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 16:30:51] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   false}} [] [2019-10-01 16:30:52] crmtoolkit.ALERT: Could not retrieve a SOAP 
   response. {“service”:”discovery”,”lastException”:”[object] (Exception(code: 0):
   Authentication Failure. AADSTS53003: Blocked by conditional access. at /home/
   s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/
   src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 16:30:52] crmtoolkit.CRITICAL:
   Exception during instantiation of the CRM Toolkit. {“exception”:”[object] (Exception(
   code: 0): Authentication Failure. AADSTS53003: Blocked by conditional access.
   at /home/s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-
   crm-toolkit/src/Auth/OnlineFederation.php:112)”} [] [2019-10-01 16:30:52] wpcrm.
   ERROR: CRM connection attempt failed with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:30:52] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 16:34:12] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 16:34:12] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 16:34:12] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   true}} [] [2019-10-01 16:34:13] crmtoolkit.ALERT: Could not retrieve a SOAP response.{“
   service”:”discovery”,”lastException”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:34:13] crmtoolkit.CRITICAL: Exception during instantiation
   of the CRM Toolkit. {“exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:34:13] wpcrm.ERROR: CRM connection attempt failed
   with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:34:13] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 16:36:16] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 16:36:16] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 16:36:16] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”dynamics.admin@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   true}} [] [2019-10-01 16:36:17] crmtoolkit.ALERT: Could not retrieve a SOAP response.{“
   service”:”discovery”,”lastException”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:36:17] crmtoolkit.CRITICAL: Exception during instantiation
   of the CRM Toolkit. {“exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:36:17] wpcrm.ERROR: CRM connection attempt failed
   with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   dynamics.admin@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:36:17] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 16:55:46] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 16:55:46] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 16:55:46] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”aubrey.bowman@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   true}} [] [2019-10-01 16:55:47] crmtoolkit.ALERT: Could not retrieve a SOAP response.{“
   service”:”discovery”,”lastException”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:55:47] crmtoolkit.CRITICAL: Exception during instantiation
   of the CRM Toolkit. {“exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:55:47] wpcrm.ERROR: CRM connection attempt failed
   with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   aubrey.bowman@zaact.com”],”exception”:”[object] (Exception(code: 0): Authentication
   Failure. AADSTS53003: Blocked by conditional access. at /home/s96/html/wp-content/
   plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Auth/OnlineFederation.
   php:112)”} [] [2019-10-01 16:55:47] wpcrm.ALERT: Connection to CRM has been ceased.[][][
   2019-10-01 16:58:50] wpcrm.NOTICE: Purging all caches and storage. [] [] [2019-
   10-01 16:58:50] wpcrm.ALERT: Connection to CRM has been ceased. [] [] [2019-10-
   01 16:58:50] wpcrm.NOTICE: Connecting to a new instance {“settings”:{“authMode”:”
   OnlineFederation”,”crmUrl”:”[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   username”:”aubrey.bowman@zaact.com”,”ignoreSslErrors”:true,”strictFederatedSTS”:
   false}} [] [2019-10-01 16:58:50] crmtoolkit.CRITICAL: Exception during instantiation
   of the CRM Toolkit. {“exception”:”[object] (BadMethodCallException(code: 0): 
   AlexaCRM\\CRMToolkit\\Client constructor requires Username and Password at /home/
   s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/
   src/Client.php:148)”} [] [2019-10-01 16:58:50] wpcrm.ERROR: CRM connection attempt
   failed with exception. {“credentials”:[“[https://zaact.crm.dynamics.com&#8221](https://zaact.crm.dynamics.com&#8221);,”
   aubrey.bowman@zaact.com”],”exception”:”[object] (BadMethodCallException(code:
   0): AlexaCRM\\CRMToolkit\\Client constructor requires Username and Password at/
   home/s96/html/wp-content/plugins/integration-dynamics/vendor/alexacrm/php-crm-
   toolkit/src/Client.php:148)”} [] [2019-10-01 16:58:50] wpcrm.ALERT: Connection
   to CRM has been ceased. [] []
    -  This topic was modified 6 years, 7 months ago by [aubreybowman](https://wordpress.org/support/users/aubreybowman/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconnection-set-up-failure%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [alexacrm](https://wordpress.org/support/users/alexacrm/)
 * (@alexacrm)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/connection-set-up-failure/#post-12006789)
 * Hi [@aubreybowman](https://wordpress.org/support/users/aubreybowman/)
 * The login fails because there is a conditional access rule attached to your Azure
   Active Directory. We don’t have enough information to tell you what it is but
   your IT support should be able to look in the logs to see why the login is being
   denied.
 * One of the reasons could be if legacy protocols are blocked. Unfortunately we
   have to use the approach where mfa is not possible. If that’s blocked then login
   would be denied.
 * Can you find out why the login is being blocked?
 * Thanks
    George
 *  Thread Starter [aubreybowman](https://wordpress.org/support/users/aubreybowman/)
 * (@aubreybowman)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/connection-set-up-failure/#post-12009763)
 * Looks like we, as a Microsoft Partner, do not have access to the legacy protocols
   and therefore don’t have access to this plug-in. Thank you for your help!
 * Aubrey
 *  Plugin Author [alexacrm](https://wordpress.org/support/users/alexacrm/)
 * (@alexacrm)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/connection-set-up-failure/#post-12010786)
 * Hi Aubrey
 * the exception can be easily added either per non-interactive user or per IP address
   of the website. We have other partners who’s successfully done that.
 * If that’s not possible then stay tuned for the next generation of this plugin
   due to be released shortly.
 * Thanks
    George
    -  This reply was modified 6 years, 7 months ago by [alexacrm](https://wordpress.org/support/users/alexacrm/).
 *  [chrisgmbishop](https://wordpress.org/support/users/chrisgmbishop/)
 * (@chrisgmbishop)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/connection-set-up-failure/#post-12362765)
 * Thanks for this answer, the non-interactive user worked perfectly in our MFA-
   enabled environment

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Connection Set-Up Failure’ is closed to new replies.

 * ![](https://ps.w.org/integration-dynamics/assets/icon-256x256.png?rev=1589904)
 * [Dynamics 365 Integration](https://wordpress.org/plugins/integration-dynamics/)
 * [Support Threads](https://wordpress.org/support/plugin/integration-dynamics/)
 * [Active Topics](https://wordpress.org/support/plugin/integration-dynamics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/integration-dynamics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/integration-dynamics/reviews/)

## Tags

 * [connection errors](https://wordpress.org/support/topic-tag/connection-errors/)
 * [Dynamics 365 Integration](https://wordpress.org/support/topic-tag/dynamics-365-integration/)

 * 4 replies
 * 1 participant
 * Last reply from: [chrisgmbishop](https://wordpress.org/support/users/chrisgmbishop/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/connection-set-up-failure/#post-12362765)
 * Status: resolved