<div dir="ltr">Hi <span style="color:rgb(76,76,76);font-size:12.8px">Oleksandr</span><div><font color="#4c4c4c"><span style="font-size:12.8px"><br></span></font></div><div><font color="#4c4c4c"><span style="font-size:12.8px">try to set up this attribute as single-valued over:</span></font></div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC107" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;word-wrap:normal"><limitations><br><maxOccurs>1</maxOccurs><br></limitations></td></tr></tbody></table><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Gustav</div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-21 15:58 GMT+02:00 Oleksandr Nekriach <span dir="ltr"><<a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hello, <br>I had followed guides to add enable/disable Resource capabilities to my openLdap resource.<br></div><div>I have configured it and everything was fine I can disable resource but when I tried to enable it I have got an error <br></div>"attribute 'midPointAccountStatus' cannot have multiple values".<br></div> I cant understand why connector try to add attribute instead of modify it?<br></div>Please help<br><div><div><div><br><a href="https://wiki.evolveum.com/display/midPoint/Recommended+OpenLDAP+Structure" target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/Recommended+<wbr>OpenLDAP+Structure</a><br><a href="https://wiki.evolveum.com/display/midPoint/Simulated+Disable+HOWTO" target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/Simulated+<wbr>Disable+HOWTO</a><br><a href="https://wiki.evolveum.com/display/midPoint/Auxiliary+Object+Classes" target="_blank">https://wiki.evolveum.com/<wbr>display/midPoint/Auxiliary+<wbr>Object+Classes</a><br><br><br>2017-09-21 16:44:24,841 [] [Thread-87] ERROR (com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor): Error executing changes for (account (default) on resource:dd8b9ada-2dfa-4aec-<wbr>b538-21357d2218be(OpenLdap3)): Internal error: com.evolveum.midpoint.util.<wbr>exception.SystemException: Got unexpected exception: org.identityconnectors.<wbr>framework.common.exceptions.<wbr>AlreadyExistsException: Error modifying LDAP entry uid=testuser6,ou=Users,ou=LV,<wbr>dc=dyninno,dc=test: [add:midPointAccountStatus: enabled,add:objectClass: midPointPerson,]: constraintViolation: attribute 'midPointAccountStatus' cannot have multiple values (19)<br>com.evolveum.midpoint.util.<wbr>exception.SystemException: Internal error: com.evolveum.midpoint.util.<wbr>exception.SystemException: Got unexpected exception: org.identityconnectors.<wbr>framework.common.exceptions.<wbr>AlreadyExistsException: Error modifying LDAP entry uid=testuser6,ou=Users,ou=LV,<wbr>dc=dyninno,dc=test: [add:midPointAccountStatus: enabled,add:objectClass: midPointPerson,]: constraintViolation: attribute 'midPointAccountStatus' cannot have multiple values (19)<br> at com.evolveum.midpoint.<wbr>provisioning.impl.<wbr>ProvisioningServiceImpl.<wbr>modifyObject(<wbr>ProvisioningServiceImpl.java:<wbr>701) ~[provisioning-impl-3.6.jar:<wbr>na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor.<wbr>modifyProvisioningObject(<wbr>ChangeExecutor.java:1397) ~[model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor.<wbr>executeModification(<wbr>ChangeExecutor.java:1281) ~[model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor.<wbr>executeDelta(ChangeExecutor.<wbr>java:812) ~[model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.ChangeExecutor.<wbr>executeChanges(ChangeExecutor.<wbr>java:308) ~[model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.lambda$<wbr>processSecondary$0(Clockwork.<wbr>java:481) [model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.LensUtil.<wbr>partialExecute(LensUtil.java:<wbr>1253) ~[model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.LensUtil.<wbr>partialExecute(LensUtil.java:<wbr>1240) ~[model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.<wbr>processSecondary(Clockwork.<wbr>java:479) [model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.click(<wbr>Clockwork.java:327) [model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.lens.Clockwork.run(<wbr>Clockwork.java:203) [model-impl-3.6.jar:na]<br> at com.evolveum.midpoint.model.<wbr>impl.controller.<wbr>ModelController.<wbr>executeChanges(<wbr>ModelController.java:569) ~[model-impl-3.6.jar:na]<br> at sun.reflect.<wbr>GeneratedMethodAccessor1281.<wbr>invoke(Unknown Source) ~[na:na]<br> at sun.reflect.<wbr>DelegatingMethodAccessorImpl.<wbr>invoke(<wbr>DelegatingMethodAccessorImpl.<wbr>java:43) ~[na:1.8.0_131]<br> at java.lang.reflect.Method.<wbr>invoke(Method.java:498) ~[na:1.8.0_131]<br> at org.apache.wicket.proxy.<wbr>LazyInitProxyFactory$<wbr>JdkHandler.invoke(<wbr>LazyInitProxyFactory.java:507) ~[wicket-ioc-7.6.0.jar:7.6.0]<br> at com.sun.proxy.$Proxy154.<wbr>executeChanges(Unknown Source) ~[na:na]<br> at com.evolveum.midpoint.web.<wbr>component.progress.<wbr>ProgressReporter.lambda$<wbr>executeChangesAsync$0(<wbr>ProgressReporter.java:187) ~[classes/:na]<br> at java.lang.Thread.run(Thread.<wbr>java:748) ~[na:1.8.0_131]<br>Caused by: com.evolveum.midpoint.util.<wbr>exception.SystemException: com.evolveum.midpoint.util.<wbr>exception.SystemException: Got unexpected exception: org.identityconnectors.<wbr>framework.common.exceptions.<wbr>AlreadyExistsException: Error modifying LDAP entry uid=testuser6,ou=Users,ou=LV,<wbr>dc=dyninno,dc=test: [add:midPointAccountStatus: enabled,add:objectClass: midPointPerson,]: constraintViolation: attribute 'midPointAccountStatus' cannot have multiple values (19)<br> at com.evolveum.midpoint.<wbr>provisioning.consistency.impl.<wbr>ErrorHandlerFactory.<wbr>createErrorHandler(<wbr>ErrorHandlerFactory.java:89) ~[provisioning-impl-3.6.jar:<wbr>na]<br> at com.evolveum.midpoint.<wbr>provisioning.impl.ShadowCache.<wbr>handleError(ShadowCache.java:<wbr>1128) ~[provisioning-impl-3.6.jar:<wbr>na]<br> at com.evolveum.midpoint.<wbr>provisioning.impl.ShadowCache.<wbr>modifyShadow(ShadowCache.java:<wbr>691) ~[provisioning-impl-3.6.jar:<wbr>na]<br> at com.evolveum.midpoint.<wbr>provisioning.impl.<wbr>ProvisioningServiceImpl.<wbr>modifyObject(<wbr>ProvisioningServiceImpl.java:<wbr>679) ~[provisioning-impl-3.6.jar:<wbr>na]<br> ... 18 common frames omitted<br><br clear="all"><br>-- <br><div class="gmail-m_2291122331824040345gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, Mednieku str. 4a, Riga, LV-1010, Latvia <br><br><div style="display:inline-block"><a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a></div>, <div style="display:inline-block"><a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a></div> | <div style="display:inline-block"><a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a></div> <br><br><img src="cid:o.nekriach@dynatech.lv1502777022855-7770"> <br><br>Stay connected: <br><div style="display:inline-block;margin:5px 5px 0px 0px"><a href="https://www.facebook.com/DynatechLatvia/?ref=br_rs" target="_blank"><img src="cid:o.nekriach@dynatech.lv1502777022855-7771"></a></div><div style="display:inline-block;margin:5px 0px 0px"><a href="https://www.linkedin.com/company-beta/17893047/" target="_blank"><img src="cid:o.nekriach@dynatech.lv1502777022855-7772"></a></div><br><br><span style="font-size:11px;color:rgb(161,161,161)">Confidentiality
Notice: This message contains confidential information and is intended
only for the named recipient(s). If you are not the addressee you may
not copy, distribute or perform any other activities with this
information. If you have received this transmission in error, please
notify us by e-mail immediately. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.</span></span></div></div></div></div>
</div></div></div></div>
<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">s pozdravom<div><br></div><div>Gustáv Pálos</div></div>
</div></div></div>