Running the SyncEngine on Multiple Domains fails with the error: "The server is unwilling to process the request"
kbt169754
PRODUCTIssue
This occurs when running the Sync Engine SmartObjects as per the Documentation here:
https://help.k2.com/onlinehelp/k2five/userguide/5.2/default.htm#ServiceBrokers/SyncService/Sync-Service.htm#Sync
The following error will be raised in the [SyncEngine].[RunHistory] table
Error - The server is unwilling to process the request.
at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.MoveNext()
at SourceCode.Sync.Providers.AD.K2ActiveDirectorySearch.d__10.MoveNext()
at SourceCode.Sync.Providers.AD.Provider.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SourceCode.Sync.SyncEngine.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SourceCode.Sync.SyncEngine.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceCode.Sync.Runtime.SyncLocalClient.<>c__DisplayClass20_0.b__0()
at SourceCode.Sync.Runtime.Extensions.<>c__DisplayClass2_0.b__0()
at SourceCode.Sync.Runtime.Extensions.LogMethodExecution[T](ILogger logger, Func`1 methodFunc, String source, Boolean throwException, String methodName)
Symptoms
This will prevent any Users or Groups to be synced to the Identity Engine. The error will be raised every time a new sync is started.
It seems that when upgrading from 4.7 - 5.2 or 5.3 the new identity service does not support OU properties as shown in this LDAP String below.
Example:
LDAP://OU=Headquarters,OU=Departments,DC=denallix,DC=com
Resolution
The solve this, configure the LDAP correctly with the LDAP String below:
LDAP://DC=DENALLIX,DC=com