Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-2486

Can't use repository pages to fix shadows with invalid attributes (after transition to new LDAP connector)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2 (Tycho)
    • Fix Version/s: 3.3 (Lincoln)
    • Component/s: None
    • Labels:
      None

      Description

      The LDAP was provisioned with midPoint 3.1.1. Now I upgraded to midPoint master and modified LDAP resource configuration including schema handling for the new LDAP connector.

      The LDAP account shadow obviously contains icfs:uid attribute. Account is unaccessible using GUI (User details), but can't be even viewed using Repository pages.

      Repository object shadow:9d69288c-8c0b-4341-ae00-b3e0835783ba(uid=abel.monalizing@dev.sk,OU=Users,dc=example,dc=com) violates the schema: No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson). Reason: : No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson): Repository object shadow:9d69288c-8c0b-4341-ae00-b3e0835783ba(uid=abel.monalizing@dev.sk,OU=Users,dc=example,dc=com) violates the schema: No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson). Reason: : No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson): Repository object shadow:9d69288c-8c0b-4341-ae00-b3e0835783ba(uid=abel.monalizing@dev.sk,OU=Users,dc=example,dc=com) violates the schema: No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson). Reason: : No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson): Repository object shadow:9d69288c-8c0b-4341-ae00-b3e0835783ba(uid=abel.monalizing@dev.sk,OU=Users,dc=example,dc=com) violates the schema: No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson). Reason: : No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson)
      
      com.evolveum.midpoint.util.exception.SchemaException: No definition for attribute {http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3}uid in object class crOCD ({http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}inetOrgPerson)
      at com.evolveum.midpoint.schema.processor.ResourceAttributeContainer.convertFromContainer(ResourceAttributeContainer.java:368)
      at com.evolveum.midpoint.provisioning.impl.ShadowCache.applyAttributesDefinition(ShadowCache.java:1484)
      at com.evolveum.midpoint.provisioning.impl.ShadowCache.applyDefinition(ShadowCache.java:594)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.applyDefinition_aroundBody30(ProvisioningServiceImpl.java:1310)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl$AjcClosure31.run(ProvisioningServiceImpl.java:1)
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:178)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$wrapSubsystem(MidpointAspect.java:1)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processProvisioningNdc(MidpointAspect.java:68)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.applyDefinition(ProvisioningServiceImpl.java:1300)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.getObject_aroundBody0(ProvisioningServiceImpl.java:244)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl$AjcClosure1.run(ProvisioningServiceImpl.java:1)
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:178)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$wrapSubsystem(MidpointAspect.java:1)
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processProvisioningNdc(MidpointAspect.java:68)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.getObject(ProvisioningServiceImpl.java:158)
      at com.evolveum.midpoint.model.impl.ModelObjectResolver.getObject(ModelObjectResolver.java:158)
      at com.evolveum.midpoint.model.impl.controller.ModelController.getObject_aroundBody0(ModelController.java:319)
      at com.evolveum.midpoint.model.impl.controller.ModelController$AjcClosure1.run(ModelController.java:1)
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: