When implementing a virtual attribute source query, which UI configuration utility allows for some custom LDAP searches to be performed against a remote LDAP data source to verify what attributes are returned. This works perfectly (we return requested attributes) when all parameters defined in the LDAP search request have values, but fails without.
In our use case, we want to generate the following LDAP request
which works fine when P1 and P2 exist. If P2 does not exist (which is the case for some setups), we fail to return any attribute. A look at the catalina.out for the AC shows exceptions with P2 being null.
From the LDAP RFC, it is allows to generate an LDAP search with a null value ((|(cn=ncashell)(cn=)) so we know the back end allows it. This only applies to the search utility.