s3:ldap: don't search when no values where found (cherry picked from commit 700635220...