Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-988

Filtering access logs by userdn doesn't work

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.0-Xpress1
    • Fix Version/s: 2.6.0
    • Component/s: core server
    • Labels:

      Description

      userdn filtering doesn't work in the access log publisher because of a typo - we check the userDNNotEqualTo array twice.

      org.opends.server.loggers.AbstractTextAccessLogPublisher.CriteriaFilter.filterUserBindDN(ClientConnection)
            if (userDNNotEqualTo.length > 0)
            {
              for (final PatternDN pattern : userDNNotEqualTo)
              {
                if (pattern.matchesDN(userDN))
                {
                  return false;
                }
              }
            }
      
            if (userDNEqualTo.length > 0)
            {
              for (final PatternDN pattern : userDNNotEqualTo)
              {
                if (pattern.matchesDN(userDN))
                {
                  return true;
                }
              }
            }
      

        Attachments

          Activity

            People

            • Assignee:
              cjr Chris Ridd
              Reporter:
              cjr Chris Ridd
              Dev Assignee:
              Chris Ridd
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: