[midPoint] Configuring synchronisation of resource account to user

Pavol Mederly mederly at evolveum.com
Sat Apr 22 14:48:31 CEST 2017


Hello Tommy,

it seems to me that the problem is that there is an account with two 
mail addresses ($shadow/attributes/mail).

Actually, I'm not sure why this should be a problem (because midPoint 
supports filter conditions with multiple right-side values), but the 
fact is that midPoint complains about it.

Best regards,

Pavol Mederly
Software developer
evolveum.com

On 21.04.2017 13:54, Tommy Montegu wrote:
>
> Hello,
>
> I find where the problem was. I have no mapping for emailAddress in my 
> user in midPoint.
>
> I map this, and now in my resource Zimbra, I saw that my account are 
> UNLINKED. (Some are unmatched because they doesn’t exist in midpoint, 
> and some are disputed, because they have no mail)
>
> When I try to reconcile (with a reconciliation task, configure with 
> objectClass zimbraAccount and in dry mode), I got errors and my 
> account stay unlinked.
>
> Here what I have (for one account) in idm.log :
>
> 2017-04-21 15:47:41,001 [] [midPointScheduler_Worker-1] ERROR 
> (com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler): 
> Reconciliation of object 
> shadow:3f87aac6-69ed-440f-9f6f-bd50243696f2(uid=teddy.louis,ou=people,dc=exodata,dc=fr) 
> from resource:48231e70-d81c-4cad-a6da-c84aed4fe4c6(Zimbra_AD) failed: 
> Error occurred during resource object shadow owner lookup, reason: 
> Couldn't convert query.
>
> com.evolveum.midpoint.util.exception.SystemException: Error occurred 
> during resource object shadow owner lookup, reason: Couldn't convert 
> query.
>
>         at 
> com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.determineSituation(SynchronizationServiceImpl.java:558) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.notifyChange(SynchronizationServiceImpl.java:253) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ChangeNotificationDispatcherImpl.notifyChange(ChangeNotificationDispatcherImpl.java:148) 
> ~[provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler.handleObjectInternal(SynchronizeAccountResultHandler.java:201) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler.handleObject(SynchronizeAccountResultHandler.java:126) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler.processRequest(AbstractSearchIterativeResultHandler.java:326) 
> [model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.util.AbstractSearchIterativeResultHandler.handle(AbstractSearchIterativeResultHandler.java:188) 
> [model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl$2.handle(ProvisioningServiceImpl.java:1200) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ShadowCache$1.handle(ShadowCache.java:863) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter$3.handle(ResourceObjectConverter.java:1098) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl$2.handle(ConnectorInstanceIcfImpl.java:2315) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> org.identityconnectors.framework.impl.api.SearchResultsHandlerLoggingProxy.handle(SearchResultsHandlerLoggingProxy.java:64) 
> [connector-framework-internal-1.4.2.18.jar:na]
>
>         at 
> org.identityconnectors.framework.impl.api.StreamHandlerUtil$ObjectStreamHandlerAdapter.handle(StreamHandlerUtil.java:101) 
> [connector-framework-internal-1.4.2.18.jar:na]
>
>         at 
> org.identityconnectors.framework.impl.api.BufferedResultsProxy.invoke(BufferedResultsProxy.java:262) 
> [connector-framework-internal-1.4.2.18.jar:na]
>
>         at 
> org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:94) 
> [connector-framework-internal-1.4.2.18.jar:na]
>
>         at com.sun.proxy.$Proxy182.search(Unknown Source) [na:na]
>
>         at sun.reflect.GeneratedMethodAccessor1229.invoke(Unknown 
> Source) ~[na:na]
>
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
> ~[na:1.8.0_121]
>
>         at java.lang.reflect.Method.invoke(Method.java:498) 
> ~[na:1.8.0_121]
>
>         at 
> org.identityconnectors.framework.impl.api.LoggingProxy.invoke(LoggingProxy.java:83) 
> [connector-framework-internal-1.4.2.18.jar:na]
>
>         at com.sun.proxy.$Proxy182.search(Unknown Source) [na:na]
>
>         at 
> org.identityconnectors.framework.impl.api.AbstractConnectorFacade.search(AbstractConnectorFacade.java:177) 
> [connector-framework-internal-1.4.2.18.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.ucf.impl.ConnectorInstanceIcfImpl.search(ConnectorInstanceIcfImpl.java:2411) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.searchResourceObjects(ResourceObjectConverter.java:1108) 
> [provisioning-impl-3.5.jar:na]
>
>        at 
> com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:870) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ShadowCache.searchObjectsIterative(ShadowCache.java:795) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.searchObjectsIterative(ProvisioningServiceImpl.java:1248) 
> [provisioning-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.ReconciliationTaskHandler.performResourceReconciliation(ReconciliationTaskHandler.java:468) 
> [model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.ReconciliationTaskHandler.runInternal(ReconciliationTaskHandler.java:263) 
> [model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.ReconciliationTaskHandler.run(ReconciliationTaskHandler.java:146) 
> [model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeHandler(JobExecutor.java:648) 
> [task-quartz-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.executeSingleTask(JobExecutor.java:469) 
> [task-quartz-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.task.quartzimpl.execution.JobExecutor.execute(JobExecutor.java:173) 
> [task-quartz-impl-3.5.jar:na]
>
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 
> [quartz-2.2.3.jar:na]
>
>         at 
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) 
> [quartz-2.2.3.jar:na]
>
> Caused by: 
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException: 
> Couldn't convert query.
>
>         at 
> com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator.findUsersByCorrelationRule(CorrelationConfirmationEvaluator.java:213) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator.findFocusesByCorrelationRule(CorrelationConfirmationEvaluator.java:97) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.determineSituationWithCorrelation(SynchronizationServiceImpl.java:646) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl.determineSituation(SynchronizationServiceImpl.java:552) 
> ~[model-impl-3.5.jar:na]
>
>         ... 34 common frames omitted
>
> Caused by: 
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException: 
> Couldn't evaluate 
> expressioncom.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionType at 75836534[description=<null>,extension=<null>,trace=<null>,stringFilter=<null>,variable=<null>,returnMultiplicity=<null>,allowEmptyValues=<null>,queryInterpretationOfNoValue=<null>,expressionEvaluator=[javax.xml.bind.JAXBElement at 2cc5594]]: 
> Expression returned more than one value (2) in Correlation expression
>
>         at 
> com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateFilterExpressionsInternal(ExpressionUtil.java:619) 
> ~[model-common-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateQueryExpressions(ExpressionUtil.java:457) 
> ~[model-common-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator.evaluateQueryExpressions(CorrelationConfirmationEvaluator.java:375) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator.updateFilterWithAccountValues(CorrelationConfirmationEvaluator.java:369) 
> ~[model-impl-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator.findUsersByCorrelationRule(CorrelationConfirmationEvaluator.java:193) 
> ~[model-impl-3.5.jar:na]
>
>         ... 37 common frames omitted
>
> Caused by: 
> com.evolveum.midpoint.util.exception.ExpressionEvaluationException: 
> Expression returned more than one value (2) in Correlation expression
>
>         at 
> com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateExpression(ExpressionUtil.java:728) 
> ~[model-common-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateExpression(ExpressionUtil.java:697) 
> ~[model-common-3.5.jar:na]
>
>         at 
> com.evolveum.midpoint.model.common.expression.ExpressionUtil.evaluateFilterExpressionsInternal(ExpressionUtil.java:577) 
> ~[model-common-3.5.jar:na]
>
>         ... 41 common frames omitted
>
> Could you debug this please ? And telle why the link doesn’t work ?
>
> I joined you my resource configuration file to you understand how I 
> have configure this.
>
> Thanks to helping me.
>
> I hope to hearing from you soon.
>
> Best regards
>
> *Tommy Montégu*Technicien Support, Exodata
>
> photo
>
> 	
>
> Standard :02 62 977 955 <callto:02%2062%20977%20955>
>
> Email : tommy.montegu at exodata.fr <mailto:tommy.montegu at exodata.fr>
>
> Website : www.exodata.fr 
> <http://t.signauxdeux.com/e1t/c/5/f18dQhb0SmZ58dDMPbW2n0x6l2B9nMJW7sM9dn7dK_MMdBzM2-04?t=http%3A%2F%2Fwww.exodata.fr%2F&si=5018836136886272&pi=57234252-d6e6-4462-cce5-05a8cd271064>
>
> Adresse : 4, rue Émile Hugot - 97490 Sainte-Clotilde
>
> http://images.wisestamp.com/facebook.png 
> <http://facebook.com/exodata>http://images.wisestamp.com/twitter.png 
> <http://t.signauxdeux.com/e1t/c/5/f18dQhb0SmZ58dDMPbW2n0x6l2B9nMJW7sM9dn7dK_MMdBzM2-04?t=http%3A%2F%2Ftwitter.com%2Fexodatagroup&si=5018836136886272&pi=57234252-d6e6-4462-cce5-05a8cd271064>http://images.wisestamp.com/linkedin.png 
> <http://t.signauxdeux.com/e1t/c/5/f18dQhb0SmZ58dDMPbW2n0x6l2B9nMJW7sM9dn7dK_MMdBzM2-04?t=http%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fexodata&si=5018836136886272&pi=57234252-d6e6-4462-cce5-05a8cd271064>http://images.wisestamp.com/googleplus.png 
> <http://t.signauxdeux.com/e1t/c/5/f18dQhb0SmZ58dDMPbW2n0x6l2B9nMJW7sM9dn7dK_MMdBzM2-04?t=http%3A%2F%2Fplus.google.com%2Fb%2F112099146097934583192%2F112099146097934583192%2Fabout&si=5018836136886272&pi=57234252-d6e6-4462-cce5-05a8cd271064>http://images.wisestamp.com/slideshare.png 
> <http://t.signauxdeux.com/e1t/c/5/f18dQhb0SmZ58dDMPbW2n0x6l2B9nMJW7sM9dn7dK_MMdBzM2-04?t=http%3A%2F%2Fwww.slideshare.net%2Fexodata&si=5018836136886272&pi=57234252-d6e6-4462-cce5-05a8cd271064>http://images.wisestamp.com/googlemaps.png 
> <http://t.signauxdeux.com/e1t/c/5/f18dQhb0SmZ58dDMPbW2n0x6l2B9nMJW7sM9dn7dK_MMdBzM2-04?t=http%3A%2F%2Fgoo.gl%2Fmaps%2F0RNBG&si=5018836136886272&pi=57234252-d6e6-4462-cce5-05a8cd271064>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170422/3fb0c23c/attachment.htm>


More information about the midPoint mailing list