Skip to content

fog.man.reg: ask for the FOG login on the domain-join question - #200

Merged
mastacontrola merged 1 commit into
masterfrom
fix/man-reg-login-for-domain-join
Nov 4, 2026
Merged

mastacontrola merged 1 commit into
masterfrom
fix/man-reg-login-for-domain-join

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Problem

FOGProject/fogproject#2054 makes the server copy the domain join account onto a newly registered host only for a signed-in operator who may create hosts. This screen asks for a FOG login only before imaging. So "join domain: yes, image now: no" sends no login, and the host registers without domain settings.

Fix

The login prompt moves into fogLogin(). The domain question and the imaging question both call it. It asks once per registration. A rejected login (three tries) answers no to the question that needed it, and it clears the username and password so they do not reach the registration POST.

Test

bash -n is clean. The screen is interactive, so no automated test drives it.

🤖 Generated with Claude Code

The server now copies the domain join account onto a newly registered
host only for a signed-in operator who may create hosts
(FOGProject/fogproject#2054). This screen asked for a login only
before imaging, so "join domain yes, image no" could never pass.

The login prompt moves into fogLogin(), which both questions call. It
asks once: an operator who signed in for the domain question is not
asked again before imaging. A rejected login answers no to the
question that needed it, and its username and password are cleared so
they do not reach the registration POST.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mastacontrola
mastacontrola merged commit d9ebcb5 into master Nov 4, 2026
1 check passed
@mastacontrola
mastacontrola deleted the fix/man-reg-login-for-domain-join branch November 4, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant