Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jackbuehner
Copy link
Collaborator

@jackbuehner jackbuehner commented Jul 19, 2025

Currently, if RAWeb is hosted on a domain-joined device that is having trouble connecting to the domain controller (e.g., a work laptop that was brought home and is not connected to the employer's VPN), the login page infers the login domain as the machine name. This leads to a confusing message about an unknown username or password.

With this change, RAWeb attempts to read the domain from the registry before falling back to the machine name. For a domain-joined device that cannot reach the domain, the error message will now correctly state that authentication failed because the domain could not be reached.

To clairify that the machine hosting RAWeb must be able to reach the domain, the unfound domain error message has also been changed to "Could not sign in because the specified domain is not available. Please make sure the RAWeb server is connected to your domain's network and try again."

Resolves #83.

Install

Run as an administrator in PowerShell to install this branch:

iwr -UseBasicParsing install.raweb.app/preview/jackbuehner/auth-domain-heuristic | iex

Checklist

Tested on:

  • Domain-joined device
  • Device not on a domain (WORKGROUP)

@jackbuehner jackbuehner self-assigned this Jul 19, 2025
@jackbuehner jackbuehner added the enhancement New feature or request label Jul 19, 2025
@jackbuehner jackbuehner marked this pull request as ready for review July 20, 2025 15:40
@jackbuehner jackbuehner merged commit f32a9d5 into kimmknight:master Jul 20, 2025
@jackbuehner jackbuehner deleted the auth-domain-heuristic branch July 20, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use better error messages on the sign in page for domain-joined PCs/servers that are currently unable to reach the domain controller

1 participant