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

Filtering access logs by userdn doesn't work

    XMLWordPrintable

    Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Fixed
    • 2.5.0-Xpress1
    • 2.6.0
    • core server

      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

            cjr Chris Ridd
            cjr Chris Ridd
            Chris Ridd Chris Ridd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: