LDAP-142 introduced this bug by deleting/disabling the users if the dn is empty. It should instead fallback on searching by uid.