To set up OWA to accept UPN login names, the Exchange, Exchweb/bin and Public virtual directories must be configured to use Basic Authentication and the default domain must be configured to be "\", no quotes.
To step through the configuration, refer to https://support.microsoft.com/?kbid=267906.