ssl bridging
2 TopicsExchange SE EWS Extended Protection / ARR SSL Bridging / Third-Party NTLM Authentication
We are troubleshooting a third-party SaaS integration that connects to Microsoft Exchange SE through EWS using NTLM authentication. The application successfully reaches Exchange through our reverse-proxy infrastructure, but NTLM authentication fails when EWS Extended Protection is configured as Allow. Exchange/IIS records the final authentication failure as: HTTP Status: 401.1 Win32 Status: 0x80090346 SSPI Error: SEC_E_BAD_BINDINGS Windows description: Client's supplied SSPI channel bindings were incorrect. We performed a controlled test where Extended Protection was temporarily changed from Allow to None on one Exchange server. The same third-party application then authenticated successfully through NTLM, established the expected service-account identity, received HTTP 200 from EWS, and the application reported a successful connection. Extended Protection was immediately restored to Allow after the test. Exchange Architecture Our on-premises Exchange environment consists of: Four Exchange Server mailbox servers. Two servers at each of two datacenter locations. Exchange Database Availability Group (DAG) providing mailbox database availability across the environment. Exchange client services are published through a pair of Microsoft ARR reverse-proxy servers in the DMZ. Windows Network Load Balancing is used on the proxy tier. ARR uses Exchange web farms containing multiple Exchange backend servers. EWS traffic is HTTPS from the external client to ARR and HTTPS again from ARR to Exchange, so the connection is SSL bridged rather than sent to Exchange as unencrypted HTTP. ARR uses Weighted Round Robin for the EWS backend farm. ARR backend HTTP keep-alive is enabled. Certificate Architecture The ARR and Exchange tiers intentionally use different certificates. ARR uses a publicly trusted certificate for the externally published Exchange namespaces. Exchange uses an internally issued PKI certificate for the internal Exchange HTTPS endpoints. This separation is intentional because the public certificate lifecycle is significantly shorter than our internal PKI certificate lifecycle, and we would prefer not to introduce recurring public certificate replacements across all Exchange servers unless required. Therefore, the SSL path is effectively: External application → HTTPS/public certificate → ARR → HTTPS/internal PKI certificate → Exchange EWS Exchange EWS Configuration The Exchange EWS virtual directories currently have: Windows Authentication: True Basic Authentication: True OAuth Authentication: True ExtendedProtectionTokenChecking: Allow ExtendedProtectionFlags: none ExtendedProtectionSPNList: empty IIS Windows Authentication for EWS has: Windows Authentication enabled Negotiate provider enabled NTLM provider enabled Extended Protection token checking: Allow Third-Party Client The third-party application identifies its EWS client as: exchangelib/3.3.0 (python-requests/2.32.4) The application is using NTLM authentication. Testing Performed We verified the following: The third-party application can reach the published EWS endpoint through ARR. TLS connectivity is successful. ARR successfully proxies the requests to Exchange. The Exchange EWS endpoint is reachable. The service account is enabled and its password is valid. The service account successfully authenticates to the same EWS environment using Basic authentication. The same service account successfully authenticates using independently tested NTLM authentication. Other applications successfully authenticate to the same Exchange environment. The third-party application reaches Exchange and begins NTLM negotiation, but Exchange rejects the final authentication with SEC_E_BAD_BINDINGS. We also reviewed domain-controller authentication logs during the failed authentication and did not observe a corresponding normal credential-validation failure for the service account. Controlled Extended Protection Test We performed a controlled A/B test on a single Exchange EWS virtual directory. Normal production configuration ExtendedProtectionTokenChecking = Allow Result: Third-party application reaches EWS. NTLM negotiation begins. Authentication does not establish the service-account identity. IIS returns HTTP 401.1. Final Win32 status is 0x80090346. SSPI reports SEC_E_BAD_BINDINGS. Temporary diagnostic configuration ExtendedProtectionTokenChecking = None Windows Authentication remained enabled. Result: The third-party application successfully completed NTLM authentication. Exchange identified the authenticated service account. The EWS transaction completed with HTTP 200 on both the frontend and backend. The third-party application's configuration interface reported Saved successfully. The test lasted only a few minutes, after which Extended Protection was immediately restored to: ExtendedProtectionTokenChecking = Allow Both Exchange servers involved in the test were subsequently verified to have Windows Authentication enabled and Extended Protection restored to Allow. No IIS reset, service restart, or server reboot was required during the test. Additional Security Context We do not want to leave Extended Protection disabled as a permanent workaround. We understand that Extended Protection / Channel Binding Token validation provides protection against NTLM credential-relay and man-in-the-middle attacks. We also have separate security work underway related to Extended Protection enforcement and want to ensure that the long-term solution for this integration does not weaken the intended Exchange security posture. Assistance Requested We would like Microsoft's or the Community's guidance on the following: Is our interpretation correct that the SEC_E_BAD_BINDINGS result is caused by the Channel Binding Token being generated against the external ARR TLS connection while Exchange validates it against the separate ARR-to-Exchange TLS connection? With IIS ARR performing SSL bridging, is using the identical certificate and private key on both the ARR and Exchange HTTPS endpoints the only Microsoft-supported method for using NTLM with Extended Protection in this topology? Is there any Microsoft-supported method for retaining: the publicly trusted certificate on ARR, the internal-PKI certificate on Exchange, SSL bridging, and Extended Protection, while supporting an NTLM EWS client that presents CBT? Is there a supported method to create a scoped exception for a specific third-party EWS integration while retaining Extended Protection for all other EWS, MRSProxy, and Exchange client traffic? If a scoped exception is supported, can it be restricted by a dedicated EWS publication path, virtual directory, application pool, hostname, source network, or other supported Exchange/IIS mechanism? Would Microsoft support a separate EWS publishing endpoint specifically for this application, or would that create an unsupported Exchange configuration? Does setting EWS ExtendedProtectionTokenChecking=None have implications for MRSProxy/EPA protection beyond normal EWS application traffic? Given that we have a multi-server DAG environment behind ARR, are there additional Extended Protection requirements regarding: certificate consistency, ARR affinity, TLS configuration, backend server selection, SPNs, or NTLM connection persistence? If Microsoft recommends using an identical certificate across ARR and Exchange, must this certificate be identical only for the Exchange servers participating in the EWS ARR farm, or must it be consistently deployed across all Exchange servers in the organization/DAG? What Microsoft-supported architecture would you recommend that allows us to keep Extended Protection enabled while avoiding unnecessary dependency on short-lived publicly issued certificates across the internal Exchange tier? Our goal is not to disable Extended Protection. We want to implement a supported configuration that preserves the NTLM relay protections provided by Extended Protection while allowing the required third-party EWS integration to function. We can reproduce both the failure and successful diagnostic test on demand and can provide IIS, Exchange HTTPProxy, ARR, and Extended Protection configuration output if required86Views0likes1Comment