From 09509ff955f400489d0e6f6f704d87ecfd6092d2 Mon Sep 17 00:00:00 2001 From: Walter Clark Date: Mon, 24 Jun 2019 21:23:37 -0400 Subject: [PATCH] Fix SCP pointer domain comparison The keywords attribute contains a GUID. The domain should be compared against the serviceBindingInformation attribute. See - https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxdisco/a2757b8d-f43e-4e6e-a65d-8283a90a5de3 --- Autodiscover/DirectoryHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Autodiscover/DirectoryHelper.cs b/Autodiscover/DirectoryHelper.cs index da01415c..b152aadb 100644 --- a/Autodiscover/DirectoryHelper.cs +++ b/Autodiscover/DirectoryHelper.cs @@ -189,7 +189,7 @@ private List GetScpUrlList( scpPtrLdapPath = scpDirEntry.Properties["serviceBindingInformation"][0] as string; // If the SCP pointer matches the user's domain, then restart search from that point. - if (entryKeywords.CaseInsensitiveContains(domainMatch)) + if (scpPtrLdapPath.CaseInsensitiveContains(domainMatch)) { // Stop the current search, start another from a new location. this.TraceMessage( @@ -404,4 +404,4 @@ internal ExchangeServiceBase Service #endregion } -} \ No newline at end of file +}