Looks up the user by the UID attribute. If this lookup succeeds, this
method then attempts to authenticate the user using the password,
throwing an AuthenticationException if the password is incorrect or an
OperationNotSupportedException if the password is empty.