Fix for OPENDJ-2976: Allow access log filtering for rootDSE searches.
The rootDSE has the empty string for DN. However representing an empty string in dsconfig is troublesome.
The fix is to treat the string "" as a special case representing the rootDSE.
| | |
| | | } |
| | | |
| | | int length = dnString.length(); |
| | | if (length == 0) |
| | | if (length == 0 |
| | | // Special pattern "" to express rootDSE aka empty DN |
| | | || "\"\"".equals(dnString)) |
| | | { |
| | | return new PatternDN(); |
| | | } |
| | |
| | | "uid=bjensen" |
| | | }, |
| | | { |
| | | "uid=dmiller, **, ou=branch level two, **, ou=aci branches, " + |
| | | "dc=example,dc=com", |
| | | "uid=dmiller, **, ou=branch level two, **, ou=aci branches, dc=example,dc=com", |
| | | "uid=dmiller, ou=branch level three, ou=branch level two, " + |
| | | "ou=branch level one, ou=aci branches, dc=example,dc=com" |
| | | }, |
| | | { |
| | | "\"\"", |
| | | "" |
| | | } |
| | | }; |
| | | } |
| | | |
| | |
| | | "sn=jensen+uid=bjensen,ou=people,dc=example,dc=com" |
| | | }, |
| | | { |
| | | "uid=dmiller, **, ou=Bad branch level, **, ou=aci branches, " + |
| | | "dc=example,dc=com", |
| | | "uid=dmiller, **, ou=Bad branch level, **, ou=aci branches, dc=example,dc=com", |
| | | "uid=dmiller, ou=branch level three, ou=branch level two, " + |
| | | "ou=branch level one, ou=aci branches, dc=example,dc=com" |
| | | }, |