Exchange Server SE / 2019 OWA Authentication Deep Dive – Part 7: LogonFormat, DefaultDomain and Troubleshooting Playbook

Summary: OWA logon format settings define the documented sign-in format, while the lab showed that some alternate identity formats could still be accepted. In this final part, we compare FullDomain, UserName, PrincipalName, and DefaultDomain, then turn the findings from the full series into a practical OWA authentication troubleshooting workflow.

OWA incidents become much slower when troubleshooting starts by changing settings instead of first locating the failure. This final part turns the series into a practical workflow: start from the symptom, identify the correct Exchange layer and evidence, and only then decide what needs to be changed.

This final part brings the series back to its practical purpose: reduce uncertainty before changing production and locate the failure before making additional changes. The controlled lab results are evidence for understanding behavior and building a repeatable troubleshooting method, not automatic production recommendations.

Part 6 finished the Windows Authentication branch. This last part returns to Forms-Based Authentication and focuses on the username side of the sign-in process.

For log correlation during troubleshooting, see Part 4. For Managed Availability traffic that can appear beside real user requests, see Part 5.

LogonFormat and DefaultDomain tests

Start from the normal FBA baseline

The baseline used throughout the series was:

FormsAuthentication          : True
BasicAuthentication          : True
WindowsAuthentication        : False
DigestAuthentication         : False
LogonFormat                  : FullDomain
DefaultDomain                :
InternalAuthenticationMethods: {Basic, Fba}
ExternalAuthenticationMethods: {Fba}

Microsoft documents FullDomain, UserName, and PrincipalName as required FBA logon formats. The tests below also record what the lab actually accepted. Where the observed behavior was broader than the documented format, I treat that as a lab observation rather than a guaranteed input contract.

Test 1 – UserName with DefaultDomain

I first changed OWA so that users could enter a short username and Exchange would have a default Windows domain to resolve it against.

PowerShell
Set-OwaVirtualDirectory -Identity "EX601\owa (Default Web Site)" -LogonFormat UserName -DefaultDomain LAB6

After the IIS restart requested by Exchange, I tested three sign-in forms:

InputResult
auser601Worked
LAB6\auser601Worked
UPN formatWorked

The useful conclusion is that UserName plus DefaultDomain allows the short name to be resolved cleanly, but it does not force every user to type only the short name.

Test 2 – PrincipalName

Next I switched the logon format to PrincipalName and removed the default domain value.

PowerShell
Set-OwaVirtualDirectory -Identity "EX601\owa (Default Web Site)" -LogonFormat PrincipalName -DefaultDomain $null

The results were different:

InputResult
UPN formatWorked
LAB6\auser601Worked
auser601Failed

Documented behavior vs. observed lab behavior: Microsoft documents PrincipalName as the UPN-based logon format and notes that the user’s UPN should match the email address. In this lab, LAB6\auser601 was also accepted while the short username failed. I treat that broader acceptance as a lab observation, not as a guaranteed input contract. For production configuration and troubleshooting, PrincipalName should still be validated against the documented UPN behavior. Microsoft Learn: Set-OwaVirtualDirectory

OWA LogonFormat and DefaultDomain test matrix comparing short username, DOMAIN\user, and UPN credential formats
Figure 1 – Credential-format results from the controlled LogonFormat and DefaultDomain tests.

Restore the baseline

After the tests, I returned OWA to the original FBA logon format.

PowerShell
Set-OwaVirtualDirectory -Identity "EX601\owa (Default Web Site)" -LogonFormat FullDomain -DefaultDomain $null -FormsAuthentication $true
Final Exchange OWA Forms-Based Authentication baseline showing FBA and Basic enabled, Windows and Digest disabled, FullDomain logon format, and default authentication methods restored
Figure 2 – Final OWA FBA baseline restored after the authentication tests.

A practical OWA authentication troubleshooting playbook

The most useful result from the full series is not one setting. It is a troubleshooting order that keeps the frontend, proxy layer, backend, health probes, and Windows protocol evidence separate.

Troubleshooting order

  1. Capture the Exchange OWA authentication properties.
  2. Confirm the frontend IIS authentication state.
  3. Reproduce one clean user test.
  4. Find the request in W3SVC1.
  5. Correlate the same time window in HttpProxy\Owa.
  6. Compare HttpStatus and BackEndStatus.
  7. Confirm the matching backend request in W3SVC2.
  8. Separate Managed Availability traffic from user traffic.
  9. If Windows Authentication is involved, verify NTLM or Kerberos with protocol evidence.
  10. Restore Microsoft defaults before concluding the test.
Exchange Server OWA authentication troubleshooting playbook showing the browser, frontend IIS, HttpProxy, backend IIS, Managed Availability, and Windows authentication verification steps
Figure 3 – The troubleshooting order used throughout the series, from browser symptom to protocol verification.

Where to look based on the symptom

SymptomFirst place I would checkWhy
OWA immediately returns 401 after an auth changeFrontend IIS + OWA auth propertiesNo usable frontend auth method may be enabled
FBA form accepts credentials but browser returns to logonW3SVC1 + HttpProxyFrontend authentication may have succeeded while proxy/backend failed
reason=2Surrounding frontend requestsIn the controlled test this matched invalid credentials
reason=0 after valid FBAHttpProxy + W3SVC2In the controlled test this matched backend authentication failure
Many backend 401 entriesSequence, URI, identity, User-AgentThey may be Windows challenges or Managed Availability traffic
cs-username=-IIS config + surrounding requestsThe dash does not identify the auth provider
Browser signs in automaticallyWindows provider list + klistSSO alone does not prove Kerberos
Kerberos-only causes a promptHTTP SPN ownership + Kerberos prerequisitesThe service ticket may not be obtainable; also verify client/DC reachability, name resolution, time, and browser integrated-auth conditions
Short username failsLogonFormat + DefaultDomainName resolution may be the issue rather than the password

The log map I keep in mind

Client / browser
      ↓
W3SVC1
Frontend IIS :443
      ↓
HttpProxy\Owa
Exchange auth + proxy context
      ↓
W3SVC2
Exchange Back End :444

For user-authentication problems, the most useful fields are usually timestamp, URI, status, client IP, user-agent, authenticated user, AuthenticationType, IsAuthenticated, HttpStatus, and BackEndStatus.

For health traffic, I add probe names, HealthMailbox identity, regular timing, and synthetic-test URIs to the picture before treating a 401 as a fault.

Things I do not infer from one value

  • 302 from /owa/auth.owa does not prove the password was correct.
  • 401 does not always mean the final authentication result was failure.
  • cs-username=- does not prove Anonymous Authentication.
  • WindowsAuthentication=True does not prove Kerberos.
  • Automatic browser sign-in does not prove Kerberos.
  • ExternalAuthenticationMethods does not prove how the site is published to the internet.
  • LogonFormat should be interpreted from both the documented required format and the observed request behavior; in these lab tests, some alternate identity formats were still accepted.

What this series did not prove

  • The reason=0 and reason=2 observations are not a universal OWA error-code dictionary. They describe the controlled scenarios reproduced in this lab.
  • Standard IIS W3C logs do not identify the authentication package by themselves. Kerberos and NTLM need additional protocol evidence.
  • The fact that the tested OWA flows still worked with backend Anonymous Authentication disabled does not mean Anonymous should be disabled in production. The documented backend defaults and support boundary still apply.
  • The tests were not an exhaustive validation of every OWA endpoint, probe, proxy, load-balanced design, or authentication combination.

The distinction matters: a lab observation is evidence for troubleshooting, not automatically a production recommendation.

Common OWA authentication questions

Does a 401 always mean OWA authentication failed?

No. A 401 can be part of an authentication challenge, backend flow, or Managed Availability traffic. Check the full request sequence before treating it as the final result.

Does WindowsAuthentication=True prove Kerberos?

No. Windows Authentication can use NTLM or Kerberos. Use protocol evidence such as Kerberos tickets and SPN validation to confirm which method was actually used.

Does LogonFormat guarantee that other username formats will fail?

No. LogonFormat defines the documented sign-in format. In this lab, some alternate identity formats were still accepted, so production troubleshooting should start from the documented format and then verify observed behavior.

Final takeaway

OWA authentication becomes much easier to reason about once the request is split into layers. The browser-facing authentication method, the Exchange proxy context, the backend authentication method, Managed Availability, and Windows protocol selection are related, but they are not the same thing.

The reliable approach is to change one variable at a time, capture the request across the relevant layers, and only then decide where the failure occurred. That is much safer than treating a browser prompt, a 302, a 401, or one IIS field as the whole story.

Exchange Server OWA Authentication Deep Dive Series

  1. Part 1: How OWA Authentication Really Works
  2. Part 2: Forms-Based and Basic Authentication – What Really Changes?
  3. Part 3: Frontend vs Backend Authentication – Controlled A/B Tests
  4. Part 4: Troubleshooting OWA Authentication with IIS and HttpProxy Logs
  5. Part 5: Managed Availability and OWA Health Probes
  6. Part 6: Windows Authentication, NTLM, Kerberos, SPNs and SSO
  7. Part 7: LogonFormat, DefaultDomain and Troubleshooting Playbook — current

References

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.