Uploaded image for project: 'OpenICF'
  1. OpenICF
  2. OPENICF-1004

LDAP Connector: QueryFilter presence modifier against System LDAP endpoint is not applied within ldapSearch

    Details

      Description

      If a presence queryFilter is defined, it is not used as part of the ldapSearch against the directory.

      GET http://localhost:8080/openidm/system/ldap/account?_queryFilter=telephoneNumber pr&_fields=telephoneNumber
      
      {
          "result": [
              {
                  "_id": "0da50512-79bb-3461-bd04-241ee4c785bf"
              },
              {
                  "_id": "887732e8-3db2-31bb-b329-20cd6fcecc05",
                  "telephoneNumber": "1-360-229-7105"
              }
          ],
          "resultCount": 2,
          "pagedResultsCookie": null,
          "totalPagedResultsPolicy": "NONE",
          "totalPagedResults": -1,
          "remainingPagedResults": -1
      }
      

      And the underlying search from the directory within the DS access logs shows:

      [23/Nov/2018:10:00:23 +0000] SEARCH REQ conn=0 op=50 msgID=51 base="dc=example,dc=com" scope=sub filter="(&(objectClass=top)(objectClass=person)(objectClass=organizationalPerson)(objectClass=inetOrgPerson))" attrs="entryUUID,telephoneNumber"
      [23/Nov/2018:10:00:23 +0000] SEARCH RES conn=0 op=50 msgID=51 result=0 nentries=2 etime=2
      

      Within the Integrator's Guide, this specific example is mentioned using 'uid':
      https://backstage.forgerock.com/docs/idm/6/integrators-guide/#query-presence

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gael Gael Allioux
                Reporter:
                tom.wood Tom Wood
                QA Assignee:
                Son Nguyen
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: