Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-15285

The procedure improving DS generic mapping performance doesn't work

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.0.4
    • Fix Version/s: None
    • Component/s: Module - Repository DS
    • Labels:
    • Target Version/s:
    • Support Ticket IDs:

      Description

      To reproduce this issue:

      1. Setup DS 6.5.3 with idm-repo profile
      2. Setup IDM 6.5.0.4, using DS node from step 1 as external repo
      3. Adding the "city" property per https://backstage.forgerock.com/docs/idm/6.5/integrators-guide/#ds-repo-indexing

      The indexed properties are listed in the array of fields for that managed object. To index additional managed user properties, add the property names to this array of fields.

      4. REST GET /openidm/managed/user?_queryFilter=city+eq+'SG' would send to DS an ldap search with filter "(fr-idm-managed-user-json:caseIgnoreJsonQueryMatchManagedUser:=/city eq \"SG\")"

      5. Debugsearchindex shows the search is unindexed.

      $ ./ldapsearch -h localhost -p 1389 -D "cn=Directory Manager" -w password -b "ou=user,ou=managed,dc=openidm,dc=example,dc=com" "(fr-idm-managed-user-json:caseIgnoreJsonQueryMatchManagedUser:=/city eq \"SG\")" debugsearchindex
      dn: cn=debugsearch
      debugsearchindex: {"filter":{"filter":"(fr-idm-managed-user-json:caseIgnoreJsonQueryMatchManagedUser:=/city eq \"SG\")","index":"fr-idm-managed-user-json.presence","diagnostic":"not indexed","candidates":"[NOT-INDEXED]"},"scope":{"type":"sub","candidates":4,"retained":4},"final":4}
      

      In comparison, query on userName is indexed.

      $ ./ldapsearch -h localhost -p 1389 -D "cn=Directory Manager" -w password -b "ou=user,ou=managed,dc=openidm,dc=example,dc=com" "(fr-idm-managed-user-json:caseIgnoreJsonQueryMatchManagedUser:=/userName eq \"test1\")" debugsearchindex
      dn: cn=debugsearch
      debugsearchindex: {"filter":{"filter":"(fr-idm-managed-user-json:caseIgnoreJsonQueryMatchManagedUser:=/userName eq \"test1\")","index":"fr-idm-managed-user-json.caseIgnoreJsonQueryMatchManagedUser","exact":"/userName%00%04test1","candidates":1},"final":1}

        Attachments

          Activity

            People

            • Assignee:
              brmiller Brendan Miller
              Reporter:
              yinyan.cao Yinyan Cao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: