Search using the mail attribute since the uid is actually an email address.